mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
build-system: remove Grantlee from the packaging scripts
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
21f1cf09f7
commit
ec7422feb5
6 changed files with 1 additions and 35 deletions
|
@ -37,14 +37,6 @@ BuildRequires: libxslt-devel
|
||||||
BuildRequires: libssh2-devel
|
BuildRequires: libssh2-devel
|
||||||
BuildRequires: libcurl-devel
|
BuildRequires: libcurl-devel
|
||||||
BuildRequires: libgit2-devel
|
BuildRequires: libgit2-devel
|
||||||
%if 0%{?fedora_version} >= 30
|
|
||||||
# current Fedora has Grantlee under a different name
|
|
||||||
# and F32 has a weird conflict with different boost-regex versions
|
|
||||||
BuildRequires: grantlee-qt5-devel
|
|
||||||
BuildRequires: boost-regex
|
|
||||||
%else
|
|
||||||
BuildRequires: grantlee5-devel
|
|
||||||
%endif
|
|
||||||
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
|
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
|
||||||
BuildRequires: netpbm-devel
|
BuildRequires: netpbm-devel
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
|
|
|
@ -36,7 +36,7 @@ LIBRARY_PATH=${DIR}/install-root/lib make install
|
||||||
|
|
||||||
# now adjust a few references that macdeployqt appears to miss
|
# now adjust a few references that macdeployqt appears to miss
|
||||||
EXECUTABLE=Subsurface.app/Contents/MacOS/Subsurface
|
EXECUTABLE=Subsurface.app/Contents/MacOS/Subsurface
|
||||||
for i in libgit2 libGrantlee_TextDocument.dylib libGrantlee_Templates.dylib; do
|
for i in libgit2 ; do
|
||||||
OLD=$(otool -L ${EXECUTABLE} | grep $i | cut -d\ -f1 | tr -d "\t")
|
OLD=$(otool -L ${EXECUTABLE} | grep $i | cut -d\ -f1 | tr -d "\t")
|
||||||
if [[ ! -z ${OLD} && ! -f Subsurface.app/Contents/Frameworks/$(basename ${OLD}) ]] ; then
|
if [[ ! -z ${OLD} && ! -f Subsurface.app/Contents/Frameworks/$(basename ${OLD}) ]] ; then
|
||||||
# copy the library into the bundle and make sure its id and the reference to it are correct
|
# copy the library into the bundle and make sure its id and the reference to it are correct
|
||||||
|
@ -78,26 +78,6 @@ for i in ${RPATH}; do
|
||||||
install_name_tool -change @rpath/$i @executable_path/../Frameworks/$i ${EXECUTABLE}
|
install_name_tool -change @rpath/$i @executable_path/../Frameworks/$i ${EXECUTABLE}
|
||||||
done
|
done
|
||||||
|
|
||||||
# next deal with libGrantlee
|
|
||||||
LIBG=$(ls Subsurface.app/Contents/Frameworks/libGrantlee_Templates*dylib)
|
|
||||||
for i in QtScript.framework/Versions/5/QtScript QtCore.framework/Versions/5/QtCore ; do
|
|
||||||
install_name_tool -change @rpath/$i @executable_path/../Frameworks/$i ${LIBG}
|
|
||||||
done
|
|
||||||
|
|
||||||
# clean up shared library dependency in the Grantlee plugins
|
|
||||||
for i in Subsurface.app/Contents/PlugIns/grantlee/5.1/*.so; do
|
|
||||||
OLD=$(otool -L $i | grep libGrantlee_Templates | cut -d\ -f1 | tr -d "\t")
|
|
||||||
SONAME=$(basename $OLD )
|
|
||||||
install_name_tool -change ${OLD} @executable_path/../Frameworks/${SONAME} $i;
|
|
||||||
OLD=$(otool -L $i | grep QtCore | cut -d\ -f1 | tr -d "\t")
|
|
||||||
install_name_tool -change ${OLD} @executable_path/../Frameworks/QtCore.framework/QtCore $i;
|
|
||||||
mv $i Subsurface.app/Contents/PlugIns/grantlee
|
|
||||||
done
|
|
||||||
rmdir Subsurface.app/Contents/PlugIns/grantlee/5.1
|
|
||||||
pushd Subsurface.app/Contents/PlugIns/grantlee
|
|
||||||
ln -s . 5.1
|
|
||||||
popd
|
|
||||||
|
|
||||||
if [ "$1" = "-nodmg" ] ; then
|
if [ "$1" = "-nodmg" ] ; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -38,7 +38,6 @@ Build-Depends: asciidoc,
|
||||||
qml-module-qtquick2,
|
qml-module-qtquick2,
|
||||||
libcurl4-openssl-dev,
|
libcurl4-openssl-dev,
|
||||||
qtconnectivity5-dev,
|
qtconnectivity5-dev,
|
||||||
libgrantlee5-dev,
|
|
||||||
subsurface-qt-private-headers
|
subsurface-qt-private-headers
|
||||||
Standards-Version: 3.9.7
|
Standards-Version: 3.9.7
|
||||||
Homepage: http://subsurface-divelog.org
|
Homepage: http://subsurface-divelog.org
|
||||||
|
|
|
@ -44,7 +44,6 @@
|
||||||
# Something like this:
|
# Something like this:
|
||||||
#
|
#
|
||||||
# ~/src/mxe <- MXE git with Qt5, automake (see above)
|
# ~/src/mxe <- MXE git with Qt5, automake (see above)
|
||||||
# /grantlee <- Grantlee 5.0.0 sources from git
|
|
||||||
# /subsurface <- current subsurface git
|
# /subsurface <- current subsurface git
|
||||||
# /googlemaps <- Google Maps plugin for QtLocation from git
|
# /googlemaps <- Google Maps plugin for QtLocation from git
|
||||||
# /hidapi <- HIDAPI library for libdivecomputer
|
# /hidapi <- HIDAPI library for libdivecomputer
|
||||||
|
|
|
@ -154,7 +154,6 @@ Section
|
||||||
# File /r Documentation
|
# File /r Documentation
|
||||||
# File /r translations
|
# File /r translations
|
||||||
# File /r printing_templates
|
# File /r printing_templates
|
||||||
# File /r grantlee
|
|
||||||
File *.dll
|
File *.dll
|
||||||
File subsurface.ico
|
File subsurface.ico
|
||||||
File qt.conf
|
File qt.conf
|
||||||
|
@ -206,7 +205,6 @@ Section "Uninstall"
|
||||||
RMDir /r "$INSTDIR\plugins"
|
RMDir /r "$INSTDIR\plugins"
|
||||||
# RMDir /r "$INSTDIR\Documentation"
|
# RMDir /r "$INSTDIR\Documentation"
|
||||||
# RMDir /r "$INSTDIR\printing_templates"
|
# RMDir /r "$INSTDIR\printing_templates"
|
||||||
# RMDir /r "$INSTDIR\grantlee"
|
|
||||||
RMDir "$INSTDIR"
|
RMDir "$INSTDIR"
|
||||||
|
|
||||||
# Remove shortcuts
|
# Remove shortcuts
|
||||||
|
|
|
@ -154,7 +154,6 @@ Section
|
||||||
File /r Documentation
|
File /r Documentation
|
||||||
File /r translations
|
File /r translations
|
||||||
File /r printing_templates
|
File /r printing_templates
|
||||||
File /r grantlee
|
|
||||||
File *.dll
|
File *.dll
|
||||||
File subsurface.ico
|
File subsurface.ico
|
||||||
File qt.conf
|
File qt.conf
|
||||||
|
@ -207,7 +206,6 @@ Section "Uninstall"
|
||||||
RMDir /r "$INSTDIR\qml"
|
RMDir /r "$INSTDIR\qml"
|
||||||
RMDir /r "$INSTDIR\Documentation"
|
RMDir /r "$INSTDIR\Documentation"
|
||||||
RMDir /r "$INSTDIR\printing_templates"
|
RMDir /r "$INSTDIR\printing_templates"
|
||||||
RMDir /r "$INSTDIR\grantlee"
|
|
||||||
RMDir "$INSTDIR"
|
RMDir "$INSTDIR"
|
||||||
|
|
||||||
# Remove shortcuts
|
# Remove shortcuts
|
||||||
|
|
Loading…
Reference in a new issue