source: trunk/dports/sysutils/apt-rpm/Portfile @ 26913

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

version upgrade, avoid patching configure

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 26913 2007-07-11 11:27:21Z afb@macports.org $
2
3PortSystem 1.0
4
5name            apt-rpm
6version         0.5.15lorg3.92
7platforms       darwin freebsd
8categories      sysutils
9maintainers     afb@macports.org
10description     Automatic updater and package installer/remover for RPM
11long_description        APT-RPM is a port of Debian's apt tools for RPM based distributions. \
12                        It provides the apt-get utility that provides a simple, safe way to \
13                        install and upgrade packages. APT features complete installation \
14                        ordering, multiple source capability and several other useful \
15                        features.
16
17homepage        http://apt-rpm.org/
18master_sites    ${homepage}testing/
19distname        apt-${version}
20use_bzip2       yes
21checksums       md5 e851d86f9aef7fb519ecc7cfa8aae845
22
23depends_lib     lib:librpm:rpm lib:libxml2:libxml2 lib:libsqlite3:sqlite3
24
25patchfiles      patch-ostable.diff patch-genbasedir.diff patch-langinfo.diff patch-scandir.diff \
26                patch-rpmsense.diff patch-rpmfdigests.diff patch-rpmpsnum.diff
27
28post-patch {
29                reinplace "s;\"/\";\"${prefix}\";" apt-pkg/init.cc
30                reinplace "s;/bin/rpm;${prefix}/bin/rpm;" apt-pkg/rpm/rpmsystem.cc
31                reinplace "s;/var/cache/apt;${prefix}/var/cache/apt;" tools/cached_md5.cc
32}
33
34configure.cxxflags -I${prefix}/include/rpm
35
36post-destroot {
37                copy -force ${filespath}/apt.conf ${destroot}${prefix}/etc/apt/apt.conf
38                reinplace "s|@@ARCH@@|${os.arch}|g" ${destroot}${prefix}/etc/apt/apt.conf
39                copy ${filespath}/sources.list ${destroot}${prefix}/etc/apt/sources.list
40                reinplace "s|@@PLATFORM@@|${os.platform}|g" ${destroot}${prefix}/etc/apt/sources.list
41                copy ${filespath}/rpmpriorities ${destroot}${prefix}/etc/apt/rpmpriorities
42                xinstall -d -m 755 ${destroot}${prefix}/etc/apt/apt.conf.d
43                xinstall -d -m 755 ${destroot}${prefix}/etc/apt/sources.list.d
44                xinstall -d -m 755 ${destroot}${prefix}/etc/apt/vendors.list.d
45                xinstall -d -m 755 ${destroot}${prefix}/var/cache/apt/archives/partial
46                xinstall -d -m 755 ${destroot}${prefix}/var/lib/apt/lists/partial
47                destroot.keepdirs ${destroot}${prefix}/etc/apt/apt.conf.d \
48                                  ${destroot}${prefix}/etc/apt/sources.list.d \
49                                  ${destroot}${prefix}/etc/apt/vendors.list.d \
50                                  ${destroot}${prefix}/var/cache/apt/archives/partial \
51                                  ${destroot}${prefix}/var/lib/apt/lists/partial
52}
Note: See TracBrowser for help on using the repository browser.