source: trunk/dports/sysutils/rpm-devel/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.7 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem 1.0
4
5name                    rpm-devel
6version                 5.2
7revision                20090308
8platforms               darwin freebsd linux
9categories              sysutils archivers
10maintainers             mac.com:n3npq afb
11description             The RPM package management system.
12long_description        The RPM Package Manager (RPM) is a powerful command line driven \
13                        package management system capable of installing, uninstalling, \
14                        verifying, querying, and updating software packages. Each software \
15                        package consists of an archive of files along with information about \
16                        the package like its version, a description, etc.
17
18homepage                http://rpm5.org
19master_sites            ${homepage}/files/rpm/rpm-5.2/SNAPSHOT
20set distdate            20090308
21distname                rpm-${version}.SNAPSHOT.${distdate}
22checksums               md5 185671bfcd5ab0021b32dcaddd29b7fa
23worksrcdir              ${distname}
24#
25### CVS source
26#fetch.type             cvs
27#cvs.root               :pserver:anonymous@rpm5.org:/cvs
28#cvs.module             rpm
29#cvs.tag                        HEAD
30#worksrcdir             rpm
31
32depends_build           port:expat port:neon \
33                        port:python25 port:perl5.8 \
34                        port:readline port:beecrypt \
35                        port:libiconv port:gettext
36
37depends_lib             lib:libhistory.5:readline port:gettext \
38                        port:popt port:sqlite3 port:xar-devel \
39                        port:liblzma port:pcre port:ossp-uuid
40
41depends_run             port:openssl \
42                        bin:gzip:gzip \
43                        bin:bzip2:bzip2 \
44                        bin:unzip:unzip
45
46patchfiles              patch-macros.in patch-rpmzq.c
47
48build.type              gnu
49
50configure.args          --disable-nls --without-javaglue --without-included-gettext \
51                        --with-libintl-prefix=${prefix} --with-libiconv-prefix=${prefix} \
52                        --mandir=${prefix}/share/man --infodir=${prefix}/share/info \
53                        --with-python=2.5 --with-perl --with-sqlite --with-dbapi=sqlite \
54                        --with-xar=external --with-xz=external --with-pcre=external --with-uuid=external \
55                        --without-apidocs --sysconfdir=${prefix}/etc --with-path-cfg=${prefix}/etc/rpm
56configure.env           __PYTHON=${prefix}/bin/python2.5 __PERL=${prefix}/bin/perl5.8
57
58### CVS config
59#post-fetch     { system "cd ${worksrcpath} && . devtool.bashrc && devtool checkout" }
60#pre-configure  { system "cd ${worksrcpath} && . devtool.bashrc && devtool autogen" }
61
62
63configure.args-append   --with-lua=internal --with-db=internal
64configure.cppflags-append       -I${prefix}/include/xar -I${prefix}/include/ossp
65
66post-destroot {
67        xinstall -d -m 755 ${destroot}${prefix}/etc/rpm
68        system "${worksrcpath}/rpm --macros=${worksrcpath}/macros --eval='%{_target_platform}' > ${destroot}${prefix}/etc/rpm/platform"
69        system "${worksrcpath}/rpm --macros=${worksrcpath}/macros --eval='noarch-%{_target_vendor}-%{_target_os}%{?_gnu}' >> ${destroot}${prefix}/etc/rpm/platform"
70
71        delete [glob ${destroot}${prefix}/lib/perl5/*/*/*/auto/RPM/.packlist]
72        delete [glob ${destroot}${prefix}/lib/perl5/*/*/perllocal.pod]
73
74        # where the RPM database lives
75        destroot.keepdirs ${destroot}${prefix}/etc/rpm\
76                          ${destroot}${prefix}/var/lib/rpm\
77                          ${destroot}${prefix}/var/spool/repackage\
78                          ${destroot}${prefix}/src/rpm/BUILD\
79                          ${destroot}${prefix}/src/rpm/RPMS\
80                          ${destroot}${prefix}/src/rpm/SOURCES\
81                          ${destroot}${prefix}/src/rpm/SPECS\
82                          ${destroot}${prefix}/src/rpm/SRPMS
83}
84
85platform darwin {
86        configure.args-append --disable-optimized --disable-aio \
87                              --with-glob --enable-broken-chown \
88                              --disable-rpath
89
90        post-destroot {
91                # Mac OS X specific changes
92        }
93}
94
95platform freebsd {
96
97        post-destroot {
98                # FreeBSD specific changes
99                reinplace "s;/usr/bin/tar;/usr/local/bin/gtar;" ${destroot}${prefix}/lib/rpm/macros
100                reinplace "s;/usr/bin/make;/usr/local/bin/gmake;" ${destroot}${prefix}/lib/rpm/macros
101        }
102}
103
104platform linux {
105
106        post-destroot {
107                # Linux specific changes
108        }
109}
110
111variant docs {
112        depends_run-append bin:doxygen:doxygen
113        configure.args-delete --without-apidocs
114        configure.args-append --with-apidocs
115}
Note: See TracBrowser for help on using the repository browser.