[pkg-wine-party] [SCM] Debian Wine packaging branch, master, updated. wine-1.1.17-1-252-g3bdd722
Ove Kaaven
ovek at arcticnet.no
Tue May 19 20:16:40 UTC 2009
The following commit has been merged in the master branch:
commit 19bb3a8a3ba4f7fa852ce5b697424e84977c5928
Author: Ove Kaaven <ovek at arcticnet.no>
Date: Mon May 18 23:44:08 2009 +0200
Instead of splitting up libwine with a long list of "mv" commands in debian/rules,
the list of files and packages to split into is now in a separate libwine.split file,
which is processed by a shell script (split.sh).
diff --git a/debian/libwine.split b/debian/libwine.split
new file mode 100644
index 0000000..f01953f
--- /dev/null
+++ b/debian/libwine.split
@@ -0,0 +1,19 @@
+libwine-alsa winealsa*
+libwine-capi capi*
+libwine-cms mscms*
+libwine-esd wineesd*
+libwine-gl d3d8*
+libwine-gl d3d9*
+libwine-gl d3d10*
+libwine-gl d3dim*
+libwine-gl d3drm*
+libwine-gl d3dx8*
+libwine-gl d3dx9*
+libwine-gl d3dxof*
+libwine-gl glu32*
+libwine-gl opengl32*
+libwine-jack winejack*
+libwine-ldap wldap32*
+libwine-nas winenas*
+libwine-oss wineoss*
+libwine-print wineps*
diff --git a/debian/rules b/debian/rules
index 5a577ac..e050b4c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -283,27 +283,7 @@ binary-arch: install-arch-stamp
#rm -f debian/libwine/usr/share/wine/fonts/marlett.ttf~
# split up libwine
-ifeq ($(DEB_HOST_GNU_SYSTEM),linux-gnu)
- mv debian/libwine/usr/lib/wine/winealsa* debian/libwine-alsa/usr/lib/wine
- mv debian/libwine/usr/lib/wine/capi* debian/libwine-capi/usr/lib/wine
-endif
- mv debian/libwine/usr/lib/wine/mscms* debian/libwine-cms/usr/lib/wine
- mv debian/libwine/usr/lib/wine/wineoss* debian/libwine-oss/usr/lib/wine
- mv debian/libwine/usr/lib/wine/wineesd* debian/libwine-esd/usr/lib/wine
- mv debian/libwine/usr/lib/wine/d3d8* debian/libwine-gl/usr/lib/wine
- mv debian/libwine/usr/lib/wine/d3d9* debian/libwine-gl/usr/lib/wine
- mv debian/libwine/usr/lib/wine/d3d10* debian/libwine-gl/usr/lib/wine
- mv debian/libwine/usr/lib/wine/d3dim* debian/libwine-gl/usr/lib/wine
- mv debian/libwine/usr/lib/wine/d3drm* debian/libwine-gl/usr/lib/wine
- mv debian/libwine/usr/lib/wine/d3dx8* debian/libwine-gl/usr/lib/wine
- mv debian/libwine/usr/lib/wine/d3dx9* debian/libwine-gl/usr/lib/wine
- mv debian/libwine/usr/lib/wine/d3dxof* debian/libwine-gl/usr/lib/wine
- mv debian/libwine/usr/lib/wine/glu32* debian/libwine-gl/usr/lib/wine
- mv debian/libwine/usr/lib/wine/opengl32* debian/libwine-gl/usr/lib/wine
- mv debian/libwine/usr/lib/wine/winejack* debian/libwine-jack/usr/lib/wine
- mv debian/libwine/usr/lib/wine/wldap32* debian/libwine-ldap/usr/lib/wine
- mv debian/libwine/usr/lib/wine/winenas* debian/libwine-nas/usr/lib/wine
- mv debian/libwine/usr/lib/wine/wineps* debian/libwine-print/usr/lib/wine
+ bash debian/split.sh libwine usr/lib/wine
dh_installdocs -s
dh_installman -s
diff --git a/debian/split.sh b/debian/split.sh
new file mode 100644
index 0000000..74f359b
--- /dev/null
+++ b/debian/split.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+SRC="$1"
+PREFIX="$2"
+while read DEST NAME; do
+ for bin in debian/$SRC/$PREFIX/$NAME; do
+ [ ! -f $bin ] || mv $bin debian/$DEST/$PREFIX
+ done
+done < debian/$SRC.split
+# return success
+true
--
Debian Wine packaging
More information about the pkg-wine-party
mailing list