[packages/adapter: 513/631] - add py3 macros

glen glen at pld-linux.org
Mon Sep 12 20:17:26 CEST 2016


commit 8fc7c3294313596f0f225ff099a8ab1957185106
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Tue Jan 18 07:16:38 2011 +0000

    - add py3 macros
    
    Changed files:
        adapter.awk -> 1.482
        adapter.sh -> 1.47

 adapter.awk | 11 +++++++----
 adapter.sh  |  5 +++++
 2 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index f106f06..4ad940b 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1570,13 +1570,10 @@ function use_files_macros(	i, n, t, a, l)
 		t = substr($0, 0, l);
 		s = substr($0, l + 1, RLENGTH - l - length("-py"py_ver".egg-info"));
 		if (match(s, "[^-]+$")) {
-#printf("s[%s]; start[%d]; length[%d]\n", s, RSTART, RLENGTH);
 			if (RSTART > 1) {
 				s = substr(s, 0, RSTART - 1);
 			}
-#printf("s2[%s]\n", s);
 			print "%if \"%{py_ver}\" > \"2.4\""
-#print t "/.+.egg-info"
 			gsub(t "/.+.egg-info", t "/" s "-*.egg-info");
 			print
 			print "%endif"
@@ -1821,7 +1818,8 @@ function import_rpm_macros() {
 		exit(rc = 1);
 	}
 
-	if (!ENVIRON["ADAPTER_REVISION"] || ENVIRON["ADAPTER_REVISION"] < 1.46) {
+	# update this version dep each time some new macro export is added
+	if (!ENVIRON["ADAPTER_REVISION"] || ENVIRON["ADAPTER_REVISION"] < 1.47) {
 		print "adapter shell script is outdated, please cvs up it" > "/dev/stderr"
 		do_not_touch_anything = 1
 		exit(rc = 1);
@@ -1863,6 +1861,11 @@ function import_rpm_macros() {
 	py_scriptdir = ENVIRON["py_scriptdir"]
 	py_ver = ENVIRON["py_ver"]
 
+	py3_sitescriptdir = ENVIRON["py3_sitescriptdir"]
+	py3_sitedir = ENVIRON["py3_sitedir"]
+	py3_scriptdir = ENVIRON["py3_scriptdir"]
+	py3_ver = ENVIRON["py3_ver"]
+
 	ruby_archdir = ENVIRON["ruby_archdir"]
 	ruby_ridir = ENVIRON["ruby_ridir"]
 	ruby_rubylibdir = ENVIRON["ruby_rubylibdir"]
diff --git a/adapter.sh b/adapter.sh
index 43d1d39..ecf0f77 100644
--- a/adapter.sh
+++ b/adapter.sh
@@ -208,6 +208,11 @@ import_rpm_macros() {
 	py_scriptdir
 	py_ver
 
+	py3_sitescriptdir
+	py3_sitedir
+	py3_scriptdir
+	py3_ver
+
 	ruby_archdir
 	ruby_ridir
 	ruby_rubylibdir
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885



More information about the pld-cvs-commit mailing list