[packages/adapter: 316/631] - jpackage adapter

glen glen at pld-linux.org
Mon Sep 12 20:00:56 CEST 2016


commit d0297fb351760ef6f3ae0f8ea6f4cd477f66a114
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Wed May 10 22:54:52 2006 +0000

    - jpackage adapter
    
    Changed files:
        adapter.awk -> 1.304

 adapter.awk | 29 ++++++++++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)
---
diff --git a/adapter.awk b/adapter.awk
index 513ce08..b86a3f1 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -428,7 +428,7 @@ function b_makekey(a, b,	s) {
 	did_clean = 1
 
 	# prevent next section header like "%post -p /sbin/ldconfig" being adapterized
-	if (!/^%/) {
+	if (!/^%post/) {
 		use_macros()
 	}
 }
@@ -658,7 +658,13 @@ preamble == 1 {
 		sub(/^Applications\/Internet\/Peer to Peer/, "Applications/Networking", group)
 		sub(/^Networking\/Deamons$/, "Networking/Daemons", group)
 		sub(/^Development\/Docs$/, "Documentation", group)
+		sub(/^Development\/Documentation$/, "Documentation", group)
 		sub(/^System Environment\/Kernel$/, "Base/Kernel", group)
+		sub(/^Development\/Libraries\/Java$/, "Development/Languages/Java", group)
+		sub(/^Development\/Java/, "Development/Languages/Java", group)
+		sub(/^Development\/Testing$/, "Development", group)
+		sub(/^Text Processing\/Markup\/HTML$/, "Applications/Text", group)
+		sub(/^Text Processing\/Markup\/XML$/, "Applications/Text", group)
 
 		$0 = "Group:\t\t" group
 
@@ -716,6 +722,18 @@ preamble == 1 {
 			l == "textutils") {
 			next
 		}
+
+        # perhaps we have common known name?
+
+        # jpackages
+		sub(/^java-devel$/, "jdk", $2);
+		sub(/^ant$/, "jakarta-ant", $2);
+		sub(/^log4j$/, "jakarta-log4j", $2);
+		sub(/^oro$/, "jakarta-oro", $2);
+		sub(/^xerces-j2$/, "xerces-j", $2);
+		sub(/^ant-junit$/, "jakarta-ant", $2);
+		sub(/^ldapjdk$/, "ldapsdk", $2);
+		sub(/^saxon-scripts$/, "saxon", $2);
 	}
 
 	# obsolete/unwanted tags
@@ -853,6 +871,7 @@ preamble == 1 {
 		sub("[?]use_mirror=.*$", "", $2);
 		sub("[?]download$", "", $2);
 		sub("^http://prdownloads\.sourceforge\.net/", "http://dl.sourceforge.net/", $2)
+		sub("^http://download\.sf\.net/", "http://dl.sourceforge.net/", $2)
 
 		sub("^http://.*\.dl\.sourceforge\.net/", "http://dl.sourceforge.net/", $2)
 		sub("^http://dl\.sourceforge\.net/sourceforge/", "http://dl.sourceforge.net/", $2)
@@ -1217,6 +1236,14 @@ function use_macros()
 	gsub("%_sbindir", "%{_sbindir}")
 	gsub("%_mandir", "%{_mandir}")
 	gsub("%name", "%{name}")
+    gsub(/%ant/, "ant")
+    gsub(/%__rm/, "rm");
+    gsub(/%__mkdir_p/, "install -d");
+    gsub(/%__cp/, "cp");
+    gsub(/%__ln_s/, "ln -s");
+    gsub(/%__sed/, "%{__sed}");
+    gsub(/%__cat/, "cat");
+    gsub(/%__chmod/, "chmod");
 
 	gsub("/usr/src/linux", "%{_kernelsrcdir}")
 	gsub("%{_prefix}/src/linux", "%{_kernelsrcdir}")
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list