[packages/adapter: 497/631] - pear demacros

glen glen at pld-linux.org
Mon Sep 12 20:16:06 CEST 2016


commit f5f6280a96f0e27c3900994a510af9da75909de3
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Tue Aug 24 09:28:44 2010 +0000

    - pear demacros
    
    Changed files:
        adapter.awk -> 1.467

 adapter.awk | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 06a25f1..ae2337b 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -236,6 +236,8 @@ function b_makekey(a, b,	s) {
 
 	if ($2 ~ /^mod_name$/)
 		mod_name = $3
+	if ($2 ~ /^_?pearname$/)
+		pearname = $3
 
 	sub(/[ \t]+$/, "");
 	# do nothing further, otherwise adapter thinks we're at preamble
@@ -1667,6 +1669,12 @@ function demacroize(str)
 	if (mod_name) {
 		sub("%{mod_name}", mod_name, str);
 	}
+	if (pearname) {
+		sub("%{_pearname}", pearname, str);
+	}
+	if (pearname) {
+		sub("%{pearname}", pearname, str);
+	}
 	if (name) {
 		sub("%{name}", name, str);
 	}
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list