From 2e306301770429a1175a72e466c3a4cf53235a89 Mon Sep 17 00:00:00 2001 From: dsomero Date: Sun, 16 Sep 2012 12:21:44 -0400 Subject: python/gerbmerge: Fixed python path Signed-off-by: dsomero --- python/gerbmerge/fix-install-paths.patch | 2 +- python/gerbmerge/gerbmerge.SlackBuild | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'python/gerbmerge') diff --git a/python/gerbmerge/fix-install-paths.patch b/python/gerbmerge/fix-install-paths.patch index dd6ea36f71636..dbe20a3f57738 100644 --- a/python/gerbmerge/fix-install-paths.patch +++ b/python/gerbmerge/fix-install-paths.patch @@ -6,7 +6,7 @@ diff -Naur gerbmerge-1.8old/setup.py gerbmerge-1.8new/setup.py BinDir = '.' else: - DestLib = distutils.sysconfig.get_config_var('LIBPYTHON') -+ DestLib = "/usr/lib/python2.6" ++ DestLib = "/usr/lib/python2.7" DestDir = os.path.join(DestLib, 'gerbmerge') BinFiles = ['misc/gerbmerge'] BinDir = distutils.sysconfig.get_config_var('BINDIR') diff --git a/python/gerbmerge/gerbmerge.SlackBuild b/python/gerbmerge/gerbmerge.SlackBuild index d3c89b1398a96..c4d085b556a29 100644 --- a/python/gerbmerge/gerbmerge.SlackBuild +++ b/python/gerbmerge/gerbmerge.SlackBuild @@ -22,6 +22,12 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ "$ARCH" = "x86_64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi + set -e rm -rf $PKG @@ -31,7 +37,7 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION -patch -p1 < $CWD/fix-install-paths.patch +sed s/lib/lib$LIBDIRSUFFIX/ $CWD/fix-install-paths.patch | patch -p1 chown -R root:root . find . \ -- cgit v1.2.3