changeset 535:830d949b71a6

python: use new FHS
author David Demelier <markand@malikania.fr>
date Wed, 10 Apr 2019 20:20:00 +0200
parents 1214c226dfa0
children adaa1ae0fe9d
files python/python/python.sh python/python2/python2.sh
diffstat 2 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/python/python/python.sh	Wed Apr 10 20:18:00 2019 +0200
+++ b/python/python/python.sh	Wed Apr 10 20:20:00 2019 +0200
@@ -51,7 +51,7 @@
 	./configure \
 		--build=$CBUILD \
 		--host=$CHOST \
-		--prefix=/usr \
+		--prefix=/ \
 		--disable-static \
 		--enable-shared \
 		--with-system-expat \
@@ -60,7 +60,7 @@
 		$with_ipv6
 	make
 	make install DESTDIR=$DESTDIR
-	ln -sf python3.7 $DESTDIR/usr/bin/python
+	ln -sf python3.7 $DESTDIR/bin/python
 
 	popd
 	rm -rf Python-$PKGVERSION
--- a/python/python2/python2.sh	Wed Apr 10 20:18:00 2019 +0200
+++ b/python/python2/python2.sh	Wed Apr 10 20:20:00 2019 +0200
@@ -51,7 +51,7 @@
 	./configure \
 		--build=$CBUILD \
 		--host=$CHOST \
-		--prefix=/usr \
+		--prefix=/ \
 		--disable-static \
 		--enable-shared \
 		--with-system-expat \
@@ -59,13 +59,13 @@
 		$with_ipv6
 	make
 	make altinstall maninstall DESTDIR=$DESTDIR
-	ln -sf python2.7 $DESTDIR/usr/bin/python2
+	ln -sf python2.7 $DESTDIR/bin/python2
 
 	# Avoid conflicts with python 3.
-	rm -f $DESTDIR/usr/bin/2to3
-	mv $DESTDIR/usr/bin/smtpd.py{,2.7}
-	mv $DESTDIR/usr/bin/idle{,2.7}
-	mv $DESTDIR/usr/bin/pydoc{,2.7}
+	rm -f $DESTDIR/bin/2to3
+	mv $DESTDIR/bin/smtpd.py{,2.7}
+	mv $DESTDIR/bin/idle{,2.7}
+	mv $DESTDIR/bin/pydoc{,2.7}
 
 	popd
 	rm -rf Python-$PKGVERSION