Ignore:
Timestamp:
Apr 18, 2004, 2:35:18 PM (15 years ago)
Author:
landonf
Message:

Fix apt's autoconf glibc version check
Use ${configure.dir} and ${build.dir}
Add destroot target override

Location:
trunk/dports/sysutils/apt
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/apt/Portfile

    r6520 r6523  
    1 # $Id: Portfile,v 1.1 2004/04/18 11:31:51 landonf Exp $
    2 BROKEN                  Not fully ported, throw an error for portindex
     1# $Id: Portfile,v 1.2 2004/04/18 14:35:17 landonf Exp $
     2# Thanks to the Fink Project for their work on porting apt
     3
    34PortSystem 1.0
    45name                    apt
    56version                 0.5.24
     7revision                1
    68platforms               darwin
    79categories              sysutils
     
    1618master_sites            http://ftp.debian.org/debian/pool/main/a/apt/
    1719checksums               md5 06f385f2317b633fd454b17a63290c1a
     20platforms               darwin
    1821distname                ${portname}_${portversion}
    1922worksrcdir              ${portname}-${portversion}
    2023
    2124patchfiles              ostable.diff \
    22                         soname-magic.diff
     25                        soname-magic.diff \
     26                        autoconf.diff
    2327
    2428# Work around case insensitive file system issues
     
    3236configure.args          --without-sgml-doc --disable-rpath
    3337
     38build.dir               ${configure.dir}
     39
    3440### Target Overrides ###
    3541post-patch {
    3642        reinplace s|@PREFIX@|${prefix}|g \
    3743                        ${worksrcpath}/buildlib/environment.mak.in
     44}
     45
     46# apt's makefiles do not have an install target
     47destroot {
     48        set build ${build.dir}
     49
     50        # Install binaries
     51        set bindest ${destroot}${prefix}/bin/
     52        file mkdir ${bindest}
     53        xinstall -m 755 ${build}/bin/apt-cache ${bindest}
     54        xinstall -m 755 ${build}/bin/apt-cdrom ${bindest}
     55        xinstall -m 755 ${build}/bin/apt-config ${bindest}
     56        xinstall -m 755 ${build}/bin/apt-extracttemplates ${bindest}
     57        xinstall -m 755 ${build}/bin/apt-get ${bindest}
     58        xinstall -m 755 ${build}/bin/apt-sortpkgs ${bindest}
     59
     60        # Install libraries
     61        set libdest ${destroot}${prefix}/lib/
     62        file mkdir ${libdest}
     63        xinstall -m 644 ${build}/bin/libapt-pkg.3.3.0.dylib ${libdest}
     64        system  "cd ${libdest} && \
     65                 ln -sf libapt-pkg.3.3.0.dylib libapt-pkg.3.dylib && \
     66                 ln -sf libapt-pkg.3.dylib libapt-pkg.dylib"
     67
     68        xinstall -m 644 ${build}/bin/libapt-inst.1.0.0.dylib ${libdest}
     69        system  "cd ${libdest} && \
     70                 ln -sf libapt-inst.1.0.0.dylib libapt-inst.1.dylib && \
     71                 ln -sf libapt-inst.1.dylib libapt-inst.dylib"
     72
     73        # Install methods
     74        set methdest ${destroot}${prefix}/libexec/apt/methods/
     75        file mkdir ${methdest}
     76        xinstall -m 755 ${build}/bin/methods/cdrom ${methdest}
     77        xinstall -m 755 ${build}/bin/methods/copy ${methdest}
     78        xinstall -m 755 ${build}/bin/methods/file ${methdest}
     79        xinstall -m 755 ${build}/bin/methods/ftp ${methdest}
     80        xinstall -m 755 ${build}/bin/methods/gzip ${methdest}
     81        xinstall -m 755 ${build}/bin/methods/http ${methdest}
     82        xinstall -m 755 ${build}/bin/methods/rsh ${methdest}
     83        system  "cd ${methdest} && \
     84                 ln -sf rsh ssh"
     85
     86        file mkdir ${methdest}/apt
     87        xinstall -m 644 ${build}/scripts/dselect/desc.apt ${methdest}/apt/
     88        xinstall -m 755 ${build}/scripts/dselect/install ${methdest}/apt/
     89        xinstall -m 644 ${build}/scripts/dselect/names ${methdest}/apt/
     90        xinstall -m 755 ${build}/scripts/dselect/setup ${methdest}/apt/
     91        xinstall -m 755 ${build}/scripts/dselect/update ${methdest}/apt/
     92
     93        # Install includes
     94        set incdest ${destroot}${prefix}/include/apt-pkg/
     95        file mkdir ${incdest}
     96        foreach file [readdir ${build}/include/apt-pkg/] {
     97                if {"$file" == "." || "$file" == ".."} {
     98                        continue
     99                }
     100                xinstall -m 644 ${build}/include/apt-pkg/${file} \
     101                        ${incdest}
     102        }
     103
     104        # Install man pages
     105        set mandest ${destroot}${prefix}/man
     106        file mkdir ${mandest}
     107        file mkdir ${mandest}/man1
     108        file mkdir ${mandest}/man5
     109        file mkdir ${mandest}/man8
     110        xinstall -m 644 ${build}/docs/apt-cache.8 \
     111                        ${build}/docs/apt-cdrom.8 \
     112                        ${build}/docs/apt-config.8 \
     113                        ${build}/docs/apt-get.8 \
     114                                ${mandest}/man8/
     115
     116        xinstall -m 644 ${build}/docs/apt-extracttemplates.1 \
     117                        ${build}/docs/apt-ftparchive.1 \
     118                        ${build}/docs/apt-sortpkgs.1 \
     119                                ${mandest}/man1/
     120
     121        xinstall -m 644 ${build}/docs/apt.conf.5 \
     122                        ${build}/docs/apt_preferences.5 \
     123                        ${build}/docs/sources.list.5 \
     124                        ${build}/docs/vendors.list.5 \
     125                                ${mandest}/man5/
     126
     127        # Install configuration files
     128        set confdest ${destroot}/etc/apt/apt.conf.d
     129        file mkdir ${confdest}
     130        #xinstall -m 644 sources.list.opendarwin ${destroot}/${prefix}/etc/apt/sources.list
     131
     132        # Create var directories
     133        file mkdir ${destroot}${prefix}/var/db/apt/archives/partial
     134        file mkdir ${destroot}${prefix}/var/db/apt/lists/partial
    38135}
    39136
Note: See TracChangeset for help on using the changeset viewer.