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