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

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

minor version update for testing version

  • lots of patches accepted upstream :-)
  • added distcheck for download directory
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 28177 2007-08-23 19:53:42Z afb@macports.org $
2
3PortSystem 1.0
4
5name            apt-rpm
6version         0.5.15lorg3.93
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 5437ac203f7fe15b9bbd74b3c99e2b6a
22
23depends_lib     lib:librpm:rpm lib:libxml2:libxml2 lib:libsqlite3:sqlite3
24
25patchfiles      patch-genbasedir.diff patch-rpmsense.diff
26
27post-patch {
28                reinplace "s;\"/\";\"${prefix}\";" apt-pkg/init.cc
29                reinplace "s;/bin/rpm;${prefix}/bin/rpm;" apt-pkg/rpm/rpmsystem.cc
30                reinplace "s;/var/cache/apt;${prefix}/var/cache/apt;" tools/cached_md5.cc
31}
32
33configure.cxxflags -I${prefix}/include/rpm
34
35post-destroot {
36                copy -force ${filespath}/apt.conf ${destroot}${prefix}/etc/apt/apt.conf
37                reinplace "s|@@ARCH@@|${os.arch}|g" ${destroot}${prefix}/etc/apt/apt.conf
38                copy ${filespath}/sources.list ${destroot}${prefix}/etc/apt/sources.list
39                reinplace "s|@@PLATFORM@@|${os.platform}|g" ${destroot}${prefix}/etc/apt/sources.list
40                copy ${filespath}/rpmpriorities ${destroot}${prefix}/etc/apt/rpmpriorities
41                xinstall -d -m 755 ${destroot}${prefix}/etc/apt/apt.conf.d
42                xinstall -d -m 755 ${destroot}${prefix}/etc/apt/sources.list.d
43                xinstall -d -m 755 ${destroot}${prefix}/etc/apt/vendors.list.d
44                xinstall -d -m 755 ${destroot}${prefix}/var/cache/apt/archives/partial
45                xinstall -d -m 755 ${destroot}${prefix}/var/lib/apt/lists/partial
46                destroot.keepdirs ${destroot}${prefix}/etc/apt/apt.conf.d \
47                                  ${destroot}${prefix}/etc/apt/sources.list.d \
48                                  ${destroot}${prefix}/etc/apt/vendors.list.d \
49                                  ${destroot}${prefix}/var/cache/apt/archives/partial \
50                                  ${destroot}${prefix}/var/lib/apt/lists/partial
51}
52
53livecheck.check regex
54# get the last modified tarball
55livecheck.url   ${master_sites}?M=D
56livecheck.regex apt-(.*)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.