You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
2.3 KiB
52 lines
2.3 KiB
13 years ago
|
#!/usr/bin/make -f
|
||
|
|
||
5 years ago
|
DEB_PYTHON_SYSTEM = $(if $(wildcard /usr/bin/dh_python2),,pysupport)
|
||
9 years ago
|
DH_PYTHON2 = $(if $(wildcard /usr/bin/dh_python2),dh_python2,dh_pysupport)
|
||
|
DEB_PYTHON2_MODULE_PACKAGES=fusion-icon-trinity
|
||
13 years ago
|
|
||
|
include /usr/share/cdbs/1/rules/debhelper.mk
|
||
9 years ago
|
ifeq (pysupport, $(DEB_PYTHON_SYSTEM))
|
||
|
include debian/python-distutils-custom.mk
|
||
|
else
|
||
|
include /usr/share/cdbs/1/class/python-distutils.mk
|
||
|
endif
|
||
11 years ago
|
#include /usr/share/cdbs/1/rules/patchsys-quilt.mk
|
||
13 years ago
|
|
||
4 years ago
|
# The default gzip compressor has been changed in dpkg >= 1.17.0.
|
||
|
deb_default_compress = $(shell LANG=C dpkg-deb --version | head -n1 | \
|
||
|
sed -e "s|.*version ||" -e "s| .*||" | \
|
||
|
xargs -r dpkg --compare-versions 1.17.0 lt \
|
||
|
&& echo xz || echo gzip)
|
||
|
ifeq ($(deb_default_compress),gzip)
|
||
12 years ago
|
DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
|
||
|
&& echo xz || echo bzip2)
|
||
4 years ago
|
endif
|
||
12 years ago
|
|
||
5 years ago
|
post-patches::
|
||
|
# make sure that python binary exists
|
||
|
# since the existing code is still dependent on python2
|
||
|
# and cdbs uses python as the default binary name
|
||
|
test -x /usr/bin/python || ln -s python2 /usr/bin/python
|
||
|
|
||
13 years ago
|
binary-install/fusion-icon-trinity::
|
||
|
mkdir -p debian/fusion-icon-trinity/usr/local/lib
|
||
|
cp -Rp debian/fusion-icon-trinity/usr/local/* debian/fusion-icon-trinity/usr/
|
||
|
rm -rf debian/fusion-icon-trinity/usr/local
|
||
10 years ago
|
mkdir -p debian/fusion-icon-trinity/temp
|
||
|
mv debian/fusion-icon-trinity/usr/lib debian/fusion-icon-trinity/temp
|
||
13 years ago
|
mkdir -p debian/fusion-icon-trinity/opt/trinity
|
||
|
cp -Rp debian/fusion-icon-trinity/usr/* debian/fusion-icon-trinity/opt/trinity/
|
||
|
rm -rf debian/fusion-icon-trinity/usr
|
||
9 years ago
|
${DH_PYTHON2} -pfusion-icon-trinity
|
||
10 years ago
|
###
|
||
|
# Must be done after invoking dh_pysupport, otherwise python scripts will
|
||
|
# end up in /usr/share/pyshare instead of dist-packages
|
||
|
mkdir -p debian/fusion-icon-trinity/usr
|
||
|
mv debian/fusion-icon-trinity/temp/lib debian/fusion-icon-trinity/usr
|
||
|
rm -rf debian/fusion-icon-trinity/temp
|
||
|
###
|
||
9 years ago
|
mkdir -p debian/fusion-icon-trinity/usr/share/doc/fusion-icon-trinity
|
||
|
mv debian/fusion-icon-trinity/opt/trinity/share/doc/fusion-icon-trinity/* debian/fusion-icon-trinity/usr/share/doc/fusion-icon-trinity/
|
||
|
rmdir -p --ignore-fail-on-non-empty debian/fusion-icon-trinity/opt/trinity/share/doc/fusion-icon-trinity
|
||
13 years ago
|
dh_icons
|