summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-06-19 09:00:19 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-06-19 09:00:19 (GMT)
commit6eabee840343d99d92dd4c2f627cb52ff3b97886 (patch)
treee421491397e1a044731a17c4ecca33f58a6970b4 /Swift/Packaging/Debian/package.sh
parent65702bc0da2ff0b20038b0c5adc44f6bbac59052 (diff)
parentaa1fd086d1453685348ada941d38891c42b902da (diff)
downloadswift-contrib-6eabee840343d99d92dd4c2f627cb52ff3b97886.zip
swift-contrib-6eabee840343d99d92dd4c2f627cb52ff3b97886.tar.bz2
Merge branch 'swift-1.x'
* swift-1.x: Make webkit dependency distribution specific.
Diffstat (limited to 'Swift/Packaging/Debian/package.sh')
-rwxr-xr-xSwift/Packaging/Debian/package.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/Swift/Packaging/Debian/package.sh b/Swift/Packaging/Debian/package.sh
index 5ccb6c1..1890069 100755
--- a/Swift/Packaging/Debian/package.sh
+++ b/Swift/Packaging/Debian/package.sh
@@ -35,10 +35,17 @@ cp -r $DIRNAME/3rdParty/Boost/src/boost/uuid $DIRNAME/3rdParty/Boost/uuid/boost
# Create orig tarball for debuild
tar czf swift-im_$DEBIAN_VERSION.orig.tar.gz --exclude=$DIRNAME/.git $DIRNAME
+# Detect dependencies
+WEBKIT_DEPENDENCY=", libqtwebkit-dev (>= 2.0.0)"
+DISTRIBUTION=`lsb_release -s -i`-`lsb_release -s -c`
+if [ "$DISTRIBUTION" == "Debian-squeeze" -o "$DISTRIBUTION" == "Ubuntu-lucid" ]; then
+ WEBKIT_DEPENDENCY=""
+fi
+
# Initialize debian files
ln -s Swift/Packaging/Debian/debian $DIRNAME/debian
../../../BuildTools/UpdateDebianChangelog.py $DIRNAME/debian/changelog $DEBIAN_VERSION
-cat $DIRNAME/debian/control.in | sed -e "s/%SWIFTEN_SOVERSION%/$SWIFTEN_SOVERSION/g" > $DIRNAME/debian/control
+cat $DIRNAME/debian/control.in | sed -e "s/%SWIFTEN_SOVERSION%/$SWIFTEN_SOVERSION/g" | sed -e "s/%WEBKIT_DEPENDENCY%/$WEBKIT_DEPENDENCY/g" > $DIRNAME/debian/control
mv $DIRNAME/debian/libswiften.install $DIRNAME/debian/libswiften$SWIFTEN_SOVERSION.install
mv $DIRNAME/debian/libswiften-dev.install $DIRNAME/debian/libswiften$SWIFTEN_SOVERSION-dev.install
mv $DIRNAME/debian/libswiften-dev.manpages $DIRNAME/debian/libswiften$SWIFTEN_SOVERSION-dev.manpages