[packages/adapter: 417/631] - %{php_data_dir}

glen glen at pld-linux.org
Mon Sep 12 20:09:24 CEST 2016


commit 4b1d6e6d4b719b6fe8e608d7048a867c6920eb8c
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Thu Jul 31 09:02:59 2008 +0000

    - %{php_data_dir}
    
    Changed files:
        adapter.awk -> 1.398

 adapter.awk | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 3d6c776..e33c630 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -99,6 +99,7 @@ BEGIN {
 	"rpm --eval %ruby_sitelibdir" | getline ruby_sitelibdir
 
 	"rpm --eval %php_pear_dir" | getline php_pear_dir
+	"rpm --eval %php_data_dir" | getline php_data_dir
 	"rpm --eval %tmpdir" | getline tmpdir
 }
 
@@ -1185,6 +1186,7 @@ function use_macros()
 	gsub(kdedocdir, "%{_kdedocdir}")
 	gsub(docdir, "%{_docdir}")
 	gsub(php_pear_dir, "%{php_pear_dir}")
+	gsub(php_data_dir, "%{php_data_dir}")
 
 	for (c = 1; c <= NF; c++) {
 		if ($c ~ datadir "/automake")
@@ -1486,6 +1488,8 @@ function use_files_macros(	i, n, t, a)
 	gsub("%{_datadir}/applications", "%{_desktopdir}");
 	gsub("%{_datadir}/icons", "%{_iconsdir}");
 	gsub("%{_datadir}/pixmaps", "%{_pixmapsdir}");
+	gsub("%{_datadir}/pear", "%{php_pear_dir}");
+	gsub("%{_datadir}/php", "%{php_data_dir}");
 }
 
 function use_script_macros()
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list