public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/portage:prefix commit in: /, lib/
@ 2018-12-12 18:54 Fabian Groffen
  0 siblings, 0 replies; only message in thread
From: Fabian Groffen @ 2018-12-12 18:54 UTC (permalink / raw
  To: gentoo-commits

commit:     3389191e9e58e73be3f41bdb251fbb962b834890
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  6 13:07:56 2018 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Dec  6 13:07:56 2018 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=3389191e

build-sys: update after pym->lib move

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 Makefile.am     |  2 +-
 configure.ac    |  2 +-
 lib/Makefile.in |  2 +-
 tarball.sh      | 20 +++++++++++++-------
 4 files changed, 16 insertions(+), 10 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index aef9678db..9bcfa00e7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
 SHELL = @PORTAGE_BASH@
 
-SUBDIRS = man bin pym cnf
+SUBDIRS = man bin lib cnf
 
 AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip
 

diff --git a/configure.ac b/configure.ac
index 525109907..6b8021ec6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -133,7 +133,7 @@ AC_CONFIG_FILES([
 				 Makefile
 				 man/Makefile
 				 bin/Makefile
-				 pym/Makefile
+				 lib/Makefile
 				 cnf/Makefile
 ])
 

diff --git a/lib/Makefile.in b/lib/Makefile.in
index a32b219d6..7d4193cc9 100644
--- a/lib/Makefile.in
+++ b/lib/Makefile.in
@@ -12,7 +12,7 @@ top_builddir=@top_builddir@
 portageuser = @portageuser@
 portagegroup = @portagegroup@
 
-PORTAGE_PYM = @PORTAGE_BASE@/pym
+PORTAGE_PYM = @PORTAGE_BASE@/lib
 INSTALL = @INSTALL@
 INSTALL_subst = ${top_builddir}/subst-install
 

diff --git a/tarball.sh b/tarball.sh
index 9c3f64785..e67e7244c 100755
--- a/tarball.sh
+++ b/tarball.sh
@@ -13,6 +13,11 @@ export TMP="/var/tmp"
 export V="$1"
 export DEST="${TMP}/${PKG}-${V}"
 
+if [[ -e ${DEST} ]]; then
+	echo ${DEST} already exists, please remove first
+	exit 1
+fi
+
 ./tabcheck.py $(
 	find ./ -name .git -o -name .hg -prune -o -type f ! -name '*.py' -print \
 		| xargs grep -l "#\!@PREFIX_PORTAGE_PYTHON@" \
@@ -22,14 +27,10 @@ export DEST="${TMP}/${PKG}-${V}"
 
 )
 
-if [[ -e ${DEST} ]]; then
-	echo EXISTS ALREADY
-	exit 1
-fi
-
 install -d -m0755 ${DEST}
 rsync -a --exclude='.git' --exclude='.hg' --exclude="repoman/" . ${DEST}
-sed -i -e '/^VERSION\s*=/s/^.*$/VERSION = "'${V}-prefix'"/' ${DEST}/pym/portage/__init__.py
+sed -i -e '/^VERSION\s*=/s/^.*$/VERSION = "'${V}-prefix'"/' \
+	${DEST}/lib/portage/__init__.py
 sed -i -e "/version = /s/'[^']\+'/'${V}-prefix'/" ${DEST}/setup.py
 sed -i -e "1s/VERSION/${V}-prefix/" ${DEST}/man/{,ru/}*.[15]
 sed -i -e "s/@version@/${V}/" ${DEST}/configure.ac
@@ -39,7 +40,12 @@ find -name '*~' | xargs --no-run-if-empty rm -f
 find -name '*.pyc' | xargs --no-run-if-empty rm -f
 find -name '*.pyo' | xargs --no-run-if-empty rm -f
 cd $TMP
-rm -f ${PKG}-${V}/bin/emerge.py ${PKG}-${V}/bin/{pmake,sandbox} ${PKG}-${V}/{bin,pym}/'.#'* ${PKG}-${V}/{bin,pym}/*.{orig,diff} ${PKG}-${V}/{bin,pym}/*.py[oc]
+rm -f \
+	${PKG}-${V}/bin/emerge.py \
+	${PKG}-${V}/bin/{pmake,sandbox} \
+	${PKG}-${V}/{bin,lib}/'.#'* \
+	${PKG}-${V}/{bin,lib}/*.{orig,diff} \
+	${PKG}-${V}/{bin,lib}/*.py[oc]
 cd $TMP/${PKG}-${V}
 chmod a+x autogen.sh && ./autogen.sh || { echo "autogen failed!"; exit -1; };
 rm -f autogen.sh tabcheck.py tarball.sh commit


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-12-12 18:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-12 18:54 [gentoo-commits] proj/portage:prefix commit in: /, lib/ Fabian Groffen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox