source: trunk/dports/sysutils/poldek/Portfile @ 28386

Last change on this file since 28386 was 28386, checked in by afb@…, 13 years ago

new port: yet another rpm frontend

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 28386 2007-08-30 06:26:24Z afb@macports.org $
2
3PortSystem 1.0
4
5name            poldek
6version         0.21-cvs20070703.00
7platforms       darwin
8categories      sysutils
9maintainers     afb@macports.org
10description     A full-featured frontend to RPM
11long_description \
12poldek is an RPM package management tool which allows you to easily \
13perform package verification, installation (including system \
14installation from scratch), upgrading, and removal. \
15\
16Program can be used in batch (like apt-get from Debian's \
17APT) or interactive mode. The interactive mode puts you into a \
18readline interface with command line autocompletion and history, \
19similar to the shell mode of Perl's CPAN.
20homepage        http://poldek.pld-linux.org/
21master_sites    ${homepage}download/snapshots/
22use_bzip2       yes
23checksums       md5 dae23dec560fad954abf157fd250e4c3
24
25depends_lib     port:rpm port:argp-standalone port:ncurses \
26                lib:libpcre:pcre lib:libcheck:check lib:libxml2:libxml2
27
28
29patchfiles      poldek-uri-escape-fix.patch patch-pm.h \
30                patch-utillibs.diff patch-realpath.diff \
31                patch-rpmlog.diff patch-libpoldek.sym patch-libpolclidek.sym
32use_autoconf    yes
33post-patch      { system "aclocal -I${prefix}/share/aclocal" }
34
35configure.cppflags-append       "-I${prefix}/include/rpm"
36post-configure { reinplace "s;-largp;;" ${worksrcpath}/cli/Makefile }
37
38# build system keeps clobbering the changes done to Makefile, due to changed config.status
39pre-build {
40        system "cd ${worksrcpath}; ${build.cmd} || true"
41        reinplace "s;-largp;;" ${worksrcpath}/cli/Makefile
42        # some other lame thing forgets to replace a var:
43        ln -s mkinstalldirs ${worksrcpath}/@MKINSTALLDIRS@
44}
45
46post-destroot {
47        xinstall -d ${destroot}${prefix}/etc/poldek
48        copy ${filespath}/macports-source.conf ${destroot}${prefix}/etc/poldek/macports-source.conf
49        reinplace "s|_distro  = pld|_distro  = macports|" ${destroot}${prefix}/etc/poldek/poldek.conf
50        reinplace "s|@@ARCH@@|${os.arch}|g" ${destroot}${prefix}/etc/poldek/macports-source.conf
51        reinplace "s|@@PLATFORM@@|${os.platform}|g" ${destroot}${prefix}/etc/poldek/macports-source.conf
52}
Note: See TracBrowser for help on using the repository browser.