[26285] trunk/dports/sysutils/rpm/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jun 18 05:51:09 PDT 2007
Revision: 26285
http://trac.macosforge.org/projects/macports/changeset/26285
Author: jmpp at macports.org
Date: 2007-06-18 05:51:08 -0700 (Mon, 18 Jun 2007)
Log Message:
-----------
Major cleanup of the portfile, bringing it up to speed with current MacPorts best practices while still preserving its structure.
Changes not yet tested so the port may not actually build, the purpose of this commit is to distribute these changes so that Jeff
and Anders (and anyone else willing to contribute, of course ;) start the real work on a much more clearner base.
Modified Paths:
--------------
trunk/dports/sysutils/rpm/Portfile
Modified: trunk/dports/sysutils/rpm/Portfile
===================================================================
--- trunk/dports/sysutils/rpm/Portfile 2007-06-18 11:36:16 UTC (rev 26284)
+++ trunk/dports/sysutils/rpm/Portfile 2007-06-18 12:51:08 UTC (rev 26285)
@@ -1,6 +1,7 @@
# $Id$
PortSystem 1.0
+
name rpm
version 4.4.9
platforms darwin
@@ -15,17 +16,17 @@
the package like its version, a description, etc.
homepage http://rpm5.org
-master_sites http://rpm5.org/files/rpm/rpm-4.4/
-distfiles rpm-${version}.tar.gz
+master_sites ${homepage}/files/${name}/${name}-4.4
checksums md5 210b768006e7d88dd8a3bcd498ea27f6
-depends_lib lib:libhistory.5:readline port:gettext \
- lib:libsqlite3.0:sqlite3
-
depends_build port:expat port:neon \
- port:python25 port:popt \
+ port:python24 port:popt \
port:readline port:beecrypt \
port:libiconv port:gettext
+
+depends_lib lib:libhistory.5:readline port:gettext \
+ lib:libsqlite3.0:sqlite3
+
depends_run port:gzip \
port:openssl \
port:bzip2 \
@@ -35,79 +36,77 @@
#lib:libz:zlib
###"expat" is for libneon, and "readline" is for rpm lua
- #"doxygen" is required for building the rpm API docs, default is --without
- #bin:doxygen:doxygen
+build.type gnu
-worksrcdir rpm-${version}
-
configure.args --disable-nls --without-javaglue --without-included-gettext \
--with-libintl-prefix=${prefix} --with-libiconv-prefix=${prefix} \
--mandir=${prefix}/share/man --infodir=${prefix}/share/info \
- --with-python=2.5
+ --with-python=2.4
-configure.env __PYTHON="${prefix}/bin/python"
+configure.cflags-append __PYTHON="${prefix}/bin/python"
-build.type gnu
-
-variant darwin {
+platform darwin {
patchfiles-append \
patch-macros.in \
patch-popt-Makefile.in
post-patch {
- file delete -force ${worksrcpath}/beecrypt
- file delete -force ${worksrcpath}/elfutils
- file delete -force ${worksrcpath}/neon
- file delete -force ${worksrcpath}/sqlite
+ delete ${worksrcpath}/beecrypt
+ delete ${worksrcpath}/elfutils
+ delete ${worksrcpath}/neon
+ delete ${worksrcpath}/sqlite
}
# use_autoconf yes
# use_automake yes
pre-configure {
- xinstall -d -m 755 ${workpath}/librt
- system "ln -sf /usr/lib/libSystem.B.dylib \
- ${workpath}/librt/librt.dylib"
+ xinstall -d -m 755 ${workpath}/librt
+ ln -sf /usr/lib/libSystem.B.dylib \
+ ${workpath}/librt/librt.dylib
- # system "touch ${worksrcpath}/aclocal.m4"
- # system "touch ${worksrcpath}/config.h.in"
- }
+# system "touch ${worksrcpath}/aclocal.m4"
+# system "touch ${worksrcpath}/config.h.in"
- post-configure {
- # system "find ${worksrcpath} -name Makefile.in | xargs touch"
- # system "find ${worksrcpath} -name Makefile | xargs touch"
}
configure.args-append --disable-optimized --disable-aio \
- --with-python=2.5 --with-lua --with-glob \
- --enable-broken-chown --disable-rpath
+ --with-lua --with-glob --enable-broken-chown \
+ --disable-rpath
- # requires doxygen:
- #configure.args-append --with-apidocs
+ configure.cflags-append -I/Library/Frameworks/Python.framework/Versions/2.4/include
+ configure.cppflags-append -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4
+ configure.ldflags-append -L${workpath}/librt
- configure.args-append \
- LDFLAGS="-L${prefix}/lib -L${workpath}/librt" \
- CFLAGS="-I/Library/Frameworks/Python.framework/Versions/2.4/include -I${prefix}/include" CPPFLAGS="-I${prefix}/include -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4"
+# post-configure {
+# system "find ${worksrcpath} -name Makefile.in | xargs touch"
+# system "find ${worksrcpath} -name Makefile | xargs touch"
+# }
post-destroot {
# Delete overlapping files.
- file delete ${destroot}${prefix}/include/popt.h
- system "rm -f ${destroot}${prefix}/share/man/man3/popt.3*"
- system "rm -rf ${destroot}${prefix}/lib/libpopt.*"
- system "rm -rf ${destroot}/System"
- system "rm -rf ${destroot}/Library"
- system "rm -f ${destroot}/usr/local/man/man3/RPM.3pm"
+ delete ${destroot}${prefix}/include/popt.h
+ delete ${destroot}${prefix}/share/man/man3/popt.3*
+ delete ${destroot}${prefix}/lib/libpopt.*
+ delete ${destroot}/System
+ delete ${destroot}/Library
+ delete ${destroot}/usr/local/man/man3/RPM.3pm
# MacOSX specific changes
reinplace "s;%{_usrsrc}/redhat;%{_usrsrc}/apple;" ${destroot}${prefix}/lib/rpm/macros
# where the RPM database lives
- destroot.keepdirs "${destroot}${prefix}/var/lib/rpm"
- destroot.keepdirs-append "${destroot}${prefix}/src/apple/BUILD"
- destroot.keepdirs-append "${destroot}${prefix}/src/apple/RPMS"
- destroot.keepdirs-append "${destroot}${prefix}/src/apple/SOURCES"
- destroot.keepdirs-append "${destroot}${prefix}/src/apple/SPECS"
- destroot.keepdirs-append "${destroot}${prefix}/src/apple/SRPMS"
+ destroot.keepdirs ${destroot}${prefix}/var/lib/rpm\
+ ${destroot}${prefix}/src/apple/BUILD\
+ ${destroot}${prefix}/src/apple/RPMS\
+ ${destroot}${prefix}/src/apple/SOURCES\
+ ${destroot}${prefix}/src/apple/SPECS\
+ ${destroot}${prefix}/src/apple/SRPMS
}
}
+
+variant docs {
+ depends_run-append bin:doxygen:doxygen
+ configure.args-append --with-apidocs
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070618/45dd32ec/attachment.html
More information about the macports-changes
mailing list