[packages/adapter: 566/631] adapter: add vim markers

glen glen at pld-linux.org
Mon Sep 12 20:21:53 CEST 2016


commit 731857f3336b987c304f314f3bf6d0aa18fff8cd
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Jan 28 21:39:39 2013 +0200

    adapter: add vim markers

 adapter.awk | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index ab95e4c..dc87436 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1894,6 +1894,7 @@ function replace_php_virtual_deps(field) {
 	}
 }
 
+# {{{ replace_groupnames(group)
 function replace_groupnames(group) {
 	group = replace(group, "Amusements/Games", "Applications/Games");
 	group = replace(group, "Amusements/Games/Strategy/Real Time", "X11/Applications/Games/Strategy");
@@ -1963,7 +1964,9 @@ function replace_groupnames(group) {
 
 	return group;
 }
+# }}}
 
+# {{{ replace_pkgconfig(pkg)
 function replace_pkgconfig(pkg,    cmd, path, n, i, line) {
 	n = split("/usr/lib64/pkgconfig /usr/lib/pkgconfig /usr/share/pkgconfig", path, / /);
 	for (i = 1; i <= n; i++) {
@@ -1980,7 +1983,9 @@ function replace_pkgconfig(pkg,    cmd, path, n, i, line) {
 		}
 	}
 }
+# }}}
 
+# {{{ replace_pythonegg(pkg)
 function replace_pythonegg(pkg,    cmd, line) {
 	cmd = "rpm -q --qf '%{N}' --whatprovides 'pythonegg(" pkg ")'";
 	# Getline returns 0 on end-of-file, -1 on error, otherwise 1.
@@ -1994,6 +1999,7 @@ function replace_pythonegg(pkg,    cmd, line) {
 		return;
 	}
 }
+# }}}
 
 function replace_requires(field,   pkg) {
 	# pkg-config -> package names
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list