[28861] trunk/dports/www/pear-base/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Mon Sep 10 05:21:29 PDT 2007
Revision: 28861
http://trac.macosforge.org/projects/macports/changeset/28861
Author: nox at macports.org
Date: 2007-09-10 05:21:28 -0700 (Mon, 10 Sep 2007)
Log Message:
-----------
pear-base:
* Updated to 1.6.2.
* Updated Archive_Tar to 1.3.2.
* Updated Console_Getopt to 1.2.3.
* Updated XML_RPC to 1.5.1.
* Added PEAR and Archive_Tar standard doc installation.
* Removed extra characters and parameters in xinstall calls.
Modified Paths:
--------------
trunk/dports/www/pear-base/Portfile
Modified: trunk/dports/www/pear-base/Portfile
===================================================================
--- trunk/dports/www/pear-base/Portfile 2007-09-10 10:06:27 UTC (rev 28860)
+++ trunk/dports/www/pear-base/Portfile 2007-09-10 12:21:28 UTC (rev 28861)
@@ -1,50 +1,55 @@
# $Id$
PortSystem 1.0
+
name pear-base
-version 1.4.9
-revision 1
+version 1.6.2
categories www php lang
-maintainers nomaintainer at macports.org
+platforms darwin
+maintainers nomaintainer
description PHP PEAR Base system (PEAR, Archive_Tar, Console_Getopt, XML_RPC)
-long_description "${description}"
-homepage http://pear.php.net
-master_sites http://pear.php.net/get/
+
+long_description ${description}
+
+homepage http://pear.php.net/
+master_sites ${homepage}get/
distname PEAR-${version}
+extract.suffix .tgz
+
set tar_name Archive_Tar
-set tar_ver 1.3.1
+set tar_ver 1.3.2
set tar_distname ${tar_name}-${tar_ver}
set console_name Console_Getopt
-set console_ver 1.2
+set console_ver 1.2.3
set console_distname ${console_name}-${console_ver}
set xml_name XML_RPC
-set xml_ver 1.4.8
+set xml_ver 1.5.1
set xml_distname ${xml_name}-${xml_ver}
set pear_dir ${prefix}/lib/php
set indirs {OS PEAR}
set pear_bin {pear peardev pecl}
-platforms darwin
-extract.suffix .tgz
-distfiles-append ${tar_distname}${extract.suffix} \
- ${console_distname}${extract.suffix} \
- ${xml_distname}${extract.suffix}
-checksums ${distname}${extract.suffix} \
- md5 52257e23987717c474a3da87f161a272 \
- sha1 cb74e281d7d30b7105ce2b4f152036b775e68cf1 \
- rmd160 038fb6f0f5d22bb1bb34fff1f80cf609d434cdd2 \
- ${tar_distname}${extract.suffix} \
- md5 31e54ce401302065d43888223a0be4d9 \
- sha1 b1eb763a5fba1289686cf1355f90f0fe9149fa6d \
- rmd160 e4d94299018d49835c9adb5d0d0bb7a4f3ee7fac \
- ${console_distname}${extract.suffix} \
- md5 8f9ec8253c04350bc01ee7ca941e24b6 \
- sha1 706a9fb1724ef97ee333dadcda95cc7cc50c0c43 \
- rmd160 d9bebe03b52a59b35a4d0fd0825da069037aa000 \
- ${xml_distname}${extract.suffix} \
- md5 c2e94575bd14a4425de9e20976c65d43 \
- sha1 5fd5e0f4dfc49374a97b2a9c36254427462a604e \
- rmd160 f4c541a6ed0758c32eca52d0a7da6ce2796a7f56
+distfiles-append [suffix ${tar_distname}] \
+ [suffix ${console_distname}] \
+ [suffix ${xml_distname}]
+
+checksums [suffix ${distname}] \
+ md5 8658f584d0ba2648b795fe8b1d8998c2 \
+ sha1 99900fdad3f7b0078746a021d17749f6bdeec03c \
+ rmd160 db3c37446c8e06149d7197ebdd3e9d720dd162ce \
+ [suffix ${tar_distname}] \
+ md5 17d49e837b64df4e8f9124f829b22cd1 \
+ sha1 40a16c6fe6cee12d9fd87d487785db2949ffa9ff \
+ rmd160 cec105d1cdefd502f209c24c217645cec723d7a2 \
+ [suffix ${console_distname}] \
+ md5 d7618327f9302a7191893768982de823 \
+ sha1 2f4ea028f478123164c3f6588f8a505dc35915df \
+ rmd160 d1624dbcb223395ded9e46285f896d6f5bb5ca74 \
+ [suffix ${xml_distname}] \
+ md5 1b516162ad65971b5fd04a7c279627ec \
+ sha1 d28fd6d3139aa247d22428ec6b50e20a3cdaa4b4 \
+ rmd160 6e8b9f4698285609d9c9d4450c59c16083607ee8
+
#depends_run port:php5
use_configure no
@@ -52,25 +57,25 @@
build {
# pearcmd.php
reinplace "s|@pear_version@|${version}|g" \
- ${worksrcpath}/scripts/\pearcmd.php
+ ${worksrcpath}/scripts/pearcmd.php
# pear script
- reinplace "s|@php_bin@|${prefix}/bin/php|g" ${worksrcpath}/scripts/\pear.sh
- reinplace "s|@bin_dir@|${prefix}/bin|g" ${worksrcpath}/scripts/\pear.sh
- reinplace "s|@php_dir@|${pear_dir}|g" ${worksrcpath}/scripts/\pear.sh
+ reinplace "s|@php_bin@|${prefix}/bin/php|g" ${worksrcpath}/scripts/pear.sh
+ reinplace "s|@bin_dir@|${prefix}/bin|g" ${worksrcpath}/scripts/pear.sh
+ reinplace "s|@php_dir@|${pear_dir}|g" ${worksrcpath}/scripts/pear.sh
reinplace "s|-d output_buffering=1|-d output_buffering=1 -d memory_limit=16M|g" \
- ${worksrcpath}/scripts/\pear.sh
+ ${worksrcpath}/scripts/pear.sh
# peardev script
reinplace "s|@php_bin@|${prefix}/bin/php|g" \
- ${worksrcpath}/scripts/\peardev.sh
- reinplace "s|@bin_dir@|${prefix}/bin|g" ${worksrcpath}/scripts/\peardev.sh
- reinplace "s|@php_dir@|${pear_dir}|g" ${worksrcpath}/scripts/\peardev.sh
+ ${worksrcpath}/scripts/peardev.sh
+ reinplace "s|@bin_dir@|${prefix}/bin|g" ${worksrcpath}/scripts/peardev.sh
+ reinplace "s|@php_dir@|${pear_dir}|g" ${worksrcpath}/scripts/peardev.sh
# pecl script
- reinplace "s|@php_bin@|${prefix}/bin/php|g" ${worksrcpath}/scripts/\pecl.sh
- reinplace "s|@bin_dir@|${prefix}/bin|g" ${worksrcpath}/scripts/\pecl.sh
- reinplace "s|@php_dir@|${pear_dir}|g" ${worksrcpath}/scripts/\pecl.sh
+ reinplace "s|@php_bin@|${prefix}/bin/php|g" ${worksrcpath}/scripts/pecl.sh
+ reinplace "s|@bin_dir@|${prefix}/bin|g" ${worksrcpath}/scripts/pecl.sh
+ reinplace "s|@php_dir@|${pear_dir}|g" ${worksrcpath}/scripts/pecl.sh
# Dependency2.php
reinplace "s|@PEAR-VER@|${version}|g" ${worksrcpath}/PEAR/Dependency2.php
@@ -83,40 +88,55 @@
}
destroot {
+ set docrootdir ${prefix}/share/doc
+
# Install PEAR
- xinstall -d -m 755 ${destroot}${prefix}/bin/ ${destroot}${pear_dir}
+ xinstall -d ${destroot}${pear_dir}
foreach B ${pear_bin} {
- xinstall -m 755 ${worksrcpath}/scripts/${B}.sh \
+ xinstall ${worksrcpath}/scripts/${B}.sh \
${destroot}${prefix}/bin/${B}
+ }
+
foreach C {pearcmd peclcmd} {
- xinstall -m 755 ${worksrcpath}/scripts/${C}.php \
- ${destroot}${pear_dir}/${C}.php
+ xinstall ${worksrcpath}/scripts/${C}.php \
+ ${destroot}${pear_dir}/${C}.php
}
- }
foreach D ${indirs} {
- file copy ${worksrcpath}/${D} ${destroot}${pear_dir}/${D}
- #xinstall -d -m 755 ${destroot}${pear_dir}${D}
- #eval xinstall -m 644 [glob ${worksrcpath}/${D}/*.php] \
- #` ${destroot}${pear_dir}/${D}
+ copy ${worksrcpath}/${D} ${destroot}${pear_dir}/
}
- eval xinstall -m 644 [glob ${worksrcpath}/*.php] ${destroot}${pear_dir}
+ eval xinstall -m 0644 [glob ${worksrcpath}/*.php] ${destroot}${pear_dir}
+
+ xinstall -d ${destroot}${docrootdir}/${distname}
+ xinstall -m 0644 ${worksrcpath}/README ${destroot}${docrootdir}/${distname}
+
+
#Install Archive_tar
- xinstall -d -m 755 ${destroot}${pear_dir}/Archive
- eval xinstall -m 644 [glob ${workpath}/${tar_distname}/Archive/*] \
+ xinstall -d ${destroot}${pear_dir}/Archive
+ eval xinstall -m 0644 [glob ${workpath}/${tar_distname}/Archive/*] \
${destroot}${pear_dir}/Archive
+ xinstall -d ${destroot}${docrootdir}/${tar_distname}
+ xinstall -m 0644 ${workpath}/${tar_distname}/docs/Archive_Tar.txt \
+ ${destroot}${docrootdir}/${tar_distname}
+
#Install Console_Getopt
- xinstall -d -m 755 ${destroot}${pear_dir}/Console
- eval xinstall -m 644 \
+ xinstall -d ${destroot}${pear_dir}/Console
+ eval xinstall -m 0644 \
[glob ${workpath}/${console_distname}/Console/*] \
${destroot}${pear_dir}/Console
#Install XML_RPC
- xinstall -d -m 755 ${destroot}${pear_dir}/XML
- eval xinstall -m 644 \
+ xinstall -d ${destroot}${pear_dir}/XML
+ eval xinstall -m 0644 \
[glob ${workpath}/${xml_distname}/*.php] \
${destroot}${pear_dir}/XML
}
+universal_variant no
+
+livecheck.check regex
+livecheck.url http://pear.php.net/package/PEAR/
+livecheck.regex >(\\d+(?:\\.\\d+)*)</a>
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070910/50f5b3d4/attachment.html
More information about the macports-changes
mailing list