[53587] trunk/dports/sysutils
afb at macports.org
afb at macports.org
Thu Jul 9 03:29:46 PDT 2009
Revision: 53587
http://trac.macports.org/changeset/53587
Author: afb at macports.org
Date: 2009-07-09 03:29:45 -0700 (Thu, 09 Jul 2009)
Log Message:
-----------
RPM 5.2 major release
Modified Paths:
--------------
trunk/dports/sysutils/rpm52/Portfile
Added Paths:
-----------
trunk/dports/sysutils/rpm52/
Removed Paths:
-------------
trunk/dports/sysutils/rpm52/files/patch-darwin.prov
trunk/dports/sysutils/rpm52/files/patch-fts.c
trunk/dports/sysutils/rpm52/files/patch-rpmio.h
trunk/dports/sysutils/rpm52/files/rpm2cpio.pl
Property changes on: trunk/dports/sysutils/rpm52
___________________________________________________________________
Added: svn:mergeinfo
+
Modified: trunk/dports/sysutils/rpm52/Portfile
===================================================================
--- trunk/dports/sysutils/rpm-devel/Portfile 2009-07-09 04:53:10 UTC (rev 53582)
+++ trunk/dports/sysutils/rpm52/Portfile 2009-07-09 10:29:45 UTC (rev 53587)
@@ -2,9 +2,8 @@
PortSystem 1.0
-name rpm-devel
-version 5.2
-revision 20090627
+name rpm52
+version 5.2.0
platforms darwin freebsd linux
categories sysutils archivers
maintainers mac.com:n3npq afb
@@ -16,18 +15,12 @@
the package like its version, a description, etc.
homepage http://rpm5.org
-master_sites ${homepage}/files/rpm/rpm-5.2/SNAPSHOT
-set distdate 20090627
-distname rpm-${version}.SNAPSHOT.${distdate}
-checksums md5 9744688f43b2cd7d6ecee6a0a44e8856
-worksrcdir ${distname}
-#
-### CVS source
-#fetch.type cvs
-#cvs.root :pserver:anonymous at rpm5.org:/cvs
-#cvs.module rpm
-#cvs.tag HEAD
-#worksrcdir rpm
+master_sites ${homepage}/files/rpm/rpm-5.2/
+distname rpm-${version}
+checksums md5 9126c960be02f2b0d6068801aa27fde7 \
+ sha1 45031ea461738f081559082d35ce80fcfea822e6 \
+ rmd160 0d4c3cfe5781608325a3269fe00fd5fa071c284e
+worksrcdir rpm-${version}
depends_build port:expat port:neon \
port:python25 port:perl5.8 \
@@ -45,6 +38,10 @@
patchfiles patch-macros.in
+post-patch {
+ file copy ${worksrcpath}/js/src/jsfile.msg ${worksrcpath}/js/rpmjsfile.msg
+}
+
build.type gnu
configure.args --disable-nls --without-javaglue --without-included-gettext \
@@ -55,12 +52,8 @@
--without-apidocs --sysconfdir=${prefix}/etc --with-path-cfg=${prefix}/etc/rpm
configure.env __PYTHON=${prefix}/bin/python2.5 __PERL=${prefix}/bin/perl5.8
-### CVS config
-#post-fetch { system "cd ${worksrcpath} && . devtool.bashrc && devtool checkout" }
-#pre-configure { system "cd ${worksrcpath} && . devtool.bashrc && devtool autogen" }
-
-configure.args-append --with-lua=internal --with-db=internal
+configure.args-append --with-js=internal --with-lua=internal --with-db=internal
configure.cppflags-append -I${prefix}/include/xar -I${prefix}/include/ossp
post-destroot {
Deleted: trunk/dports/sysutils/rpm52/files/patch-darwin.prov
===================================================================
--- trunk/dports/sysutils/rpm-devel/files/patch-darwin.prov 2009-07-09 04:53:10 UTC (rev 53582)
+++ trunk/dports/sysutils/rpm52/files/patch-darwin.prov 2009-07-09 10:29:45 UTC (rev 53587)
@@ -1,11 +0,0 @@
---- autodeps/darwin.prov 2005-01-04 09:41:39.000000000 -0800
-+++ autodeps/darwin.prov 2007-06-13 10:52:54.000000000 -0700
-@@ -5,7 +5,7 @@
- # This script reads filenames from STDIN and outputs any relevant provides
- # information that needs to be included in the package.
-
--filelist=$(sed -n -e '/\.dylib/p' -e '/\.so/p' -e '/\.bundle/p' | sort | uniq | xargs file -L 2>/dev/null | grep "Mach-O.*ppc" | cut -d: -f1)
-+filelist=$(sed -n -e '/\.dylib/p' -e '/\.so/p' -e '/\.bundle/p' -e '/\.jnilib/p' | sort | uniq | xargs file -L 2>/dev/null | grep "Mach-O.*" | cut -d: -f1)
-
- for f in $filelist; do
- libname=$(basename $f | sed -e 's;\..*;;')
Deleted: trunk/dports/sysutils/rpm52/files/patch-fts.c
===================================================================
--- trunk/dports/sysutils/rpm-devel/files/patch-fts.c 2009-07-09 04:53:10 UTC (rev 53582)
+++ trunk/dports/sysutils/rpm52/files/patch-fts.c 2009-07-09 10:29:45 UTC (rev 53587)
@@ -1,18 +0,0 @@
---- rpmio/fts.c 2007-05-25 10:36:36.000000000 -0700
-+++ rpmio/fts.c 2007-06-13 10:52:54.000000000 -0700
-@@ -34,6 +34,7 @@
- static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
- #endif /* LIBC_SCCS and not lint */
-
-+#include "system.h"
- #if defined(_LIBC)
- #include <sys/param.h>
- #include <include/sys/stat.h>
-@@ -70,7 +71,6 @@
- # define stat64 stat
- # define __fxstat64(_stat_ver, _fd, _sbp) fstat((_fd), (_sbp))
- #endif
--#include "system.h"
- #include "fts.h"
- #include "rpmio.h"
- #include "rpmurl.h"
Deleted: trunk/dports/sysutils/rpm52/files/patch-rpmio.h
===================================================================
--- trunk/dports/sysutils/rpm-devel/files/patch-rpmio.h 2009-07-09 04:53:10 UTC (rev 53582)
+++ trunk/dports/sysutils/rpm52/files/patch-rpmio.h 2009-07-09 10:29:45 UTC (rev 53587)
@@ -1,11 +0,0 @@
---- rpmio/rpmio.h 2007/06/17 14:49:02 1.53
-+++ rpmio/rpmio.h 2007/07/10 19:46:20 1.54
-@@ -664,7 +664,7 @@
- * @param prompt prompt string
- * @return password
- */
--char * (*Getpass) (const char * prompt)
-+extern char * (*Getpass) (const char * prompt)
- /*@*/;
- char * _GetPass (const char * prompt)
- /*@*/;
Deleted: trunk/dports/sysutils/rpm52/files/rpm2cpio.pl
===================================================================
--- trunk/dports/sysutils/rpm-devel/files/rpm2cpio.pl 2009-07-09 04:53:10 UTC (rev 53582)
+++ trunk/dports/sysutils/rpm52/files/rpm2cpio.pl 2009-07-09 10:29:45 UTC (rev 53587)
@@ -1,89 +0,0 @@
-#!/usr/bin/perl
-
-# Copyright (C) 1997,1998,1999, Roger Espel Llima
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and any associated documentation files (the "Software"), to
-# deal in the Software without restriction, including without limitation the
-# rights to use, copy, modify, merge, publish, distribute, sublicense,
-# and/or sell copies of the Software, and to permit persons to whom the
-# Software is furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# SOFTWARE'S COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE
-
-# (whew, that's done!)
-
-# why does the world need another rpm2cpio? because the existing one
-# won't build unless you have half a ton of things that aren't really
-# required for it, since it uses the same library used to extract RPM's.
-# in particular, it won't build on the HPsUX box i'm on.
-
-
-# add a path if desired
-$gzip = "gzip";
-
-sub printhelp {
- print <<HERE;
-rpm2cpio, perl version by orabidoo <odar\@pobox.com>
-dumps the contents to stdout as a cpio archive
-
-use: rpm2cpio [file.rpm] > file.cpio
-
-Here's how to use cpio:
- list of contents: cpio -t -i < /file/name
- extract files: cpio -d -i < /file/name
-HERE
-
- exit 0;
-}
-
-if ($#ARGV == -1) {
- printhelp if -t STDIN;
- $f = "STDIN";
-} elsif ($#ARGV == 0) {
- open(F, "< $ARGV[0]") or die "Can't read file $ARGV[0]\n";
- $f = 'F';
-} else {
- printhelp;
-}
-
-printhelp if -t STDOUT;
-
-# gobble the file up
-undef $/;
-$|=1;
-$rpm = <$f>;
-close ($f);
-
-($magic, $major, $minor, $crap) = unpack("NCC C90", $rpm);
-
-die "Not an RPM\n" if $magic != 0xedabeedb;
-die "Not a version 3 or 4 RPM\n" if $major != 3 && $major != 4;
-
-$rpm = substr($rpm, 96);
-
-while ($rpm ne '') {
- $rpm =~ s/^\c@*//s;
- ($magic, $crap, $sections, $bytes) = unpack("N4", $rpm);
- $smagic = unpack("n", $rpm);
- last if $smagic eq 0x1f8b;
- die "Error: header not recognized\n" if $magic != 0x8eade801;
- $rpm = substr($rpm, 16*(1+$sections) + $bytes);
-}
-
-die "bogus RPM\n" if $rpm eq '';
-
-open(ZCAT, "|gzip -cd") || die "can't pipe to gzip\n";
-#print STDERR "CPIO archive found!\n";
-print ZCAT $rpm;
-close ZCAT;
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090709/aba6e2cc/attachment.html>
More information about the macports-changes
mailing list