Ignore:
Timestamp:
Mar 20, 2014, 6:40:29 PM (6 years ago)
Author:
ryandesign@…
Message:

osxutils: switch to github fork since original is unmaintained since 2005 and update to 1.8.1 to fix build failure on Mavericks (#40860)

Location:
trunk/dports/sysutils/osxutils
Files:
1 deleted
1 edited

Legend:

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

    r118062 r118064  
    33
    44PortSystem          1.0
    5 PortGroup           xcode 1.0
     5PortGroup           github 1.0
    66
    7 name                osxutils
    8 version             1.7
    9 revision            1
     7github.setup        vasi osxutils 1.8.1 v
    108categories          sysutils
    11 maintainers         nomaintainer
     9maintainers         ryandesign openmaintainer
    1210license             GPL-2+
    1311
     
    1513
    1614long_description    osxutils is a package of potentially useful Mac-oriented \
    17                     command line utilities for Mac OS X version 10.0 or later. \
     15                    command line utilities for OS X. \
    1816                    These tools represent an effort in bringing command line \
    1917                    control over certain aspects of the Mac OS, in particular \
     
    2119                    and Creator codes, comments and suffixes/file extensions.
    2220
    23 homepage            http://sourceforge.net/projects/osxutils
    24 master_sites        sourceforge
    25 use_zip             yes
    26 
    27 distname            ${name}-${version}-src-xcode
    28 worksrcdir          ${name}
    29 checksums           md5     7f404befd8909fa4b06adcd71c5afe22 \
    30                     sha1    5cbd1badf4cd7fe36431baf5e1358a68f9967eac \
    31                     rmd160  b91fa4644ee8348c0013f55aaa9d0d8f2e46dafe
    32 
    33 # upgrade to "native" targets so modern Xcode doesn't complain
    34 patchfiles          patch-xcodeprojs \
    35                     remove_lvalue_casts.diff
     21checksums           rmd160  ab18669d5643ef2dcbae8265bff6f48918ad4b59 \
     22                    sha256  dab0329faae3028d42ea968796d50c2afb7a328c4e99f9488ed40d39f373c533
    3623
    3724post-patch {
    38     foreach item [concat [glob ${worksrcpath}/*/*.1] ${worksrcpath}/rcmac/rcmac] {
     25    foreach item [concat [glob ${worksrcpath}/*/*.1] ${worksrcpath}/Makefile] {
    3926        reinplace "s|/usr/local|${prefix}|g" ${item}
    4027    }
    4128}
    4229
    43 # all but one of these tools use 32-bit-only carbon bits
    44 supported_archs     i386 ppc
     30use_configure       no
    4531
    46 set bt {getfcomment geticon hfsdata lsmac mkalias setfcomment setfctypes setfflags seticon setlabel setsuffix wsupdate}
     32variant universal {}
    4733
    48 # Mostly clagged from xcode portgroup. Not pretty, but the portgroup doesn't
    49 # support multiple projects.
    50 build {
    51     # set some arguments.
    52     set xcode_configuration_arg [xcode::get_configuration_arg ${xcode.configuration}]
    53     set xcode_build_args [xcode::get_build_args]
     34build.args          CC=${configure.cc} \
     35                    ARCH_FLAG="[get_canonical_archflags cc]" \
     36                    OPT="${configure.optflags}"
    5437
    55     foreach item ${bt} {
    56         xcode.project ${item}/${item}.xcodeproj
    57         set xcode_project_arg [xcode::get_project_arg ${xcode.project}]
    58         xcode::build_one_target \
    59             "$xcode_project_arg -alltargets $xcode_configuration_arg" \
    60             "$xcode_build_args ${xcode.build.settings}"
    61     }
    62 }
    63 
    64 xcode.destroot.path ${prefix}/bin
    65 destroot {
    66     # set some arguments.
    67     set xcode_configuration_arg [xcode::get_configuration_arg ${xcode.configuration}]
    68     set xcode_install_path_setting [xcode::get_install_path_setting \
    69                                         ${xcode.destroot.path} ${xcode.destroot.type}]
    70     set xcode_build_args [xcode::get_build_args]
    71 
    72     foreach item ${bt} {
    73         xcode.project ${item}/${item}.xcodeproj
    74         # let Xcode 2.1+ find resources.
    75         xcode::fix_resource_dependencies
    76         set xcode_project_arg [xcode::get_project_arg ${xcode.project}]
    77         xcode::destroot_one_target \
    78             "$xcode_project_arg -alltargets $xcode_configuration_arg" \
    79             "$xcode_install_path_setting $xcode_build_args ${xcode.destroot.settings}"
    80         copy ${worksrcpath}/${item}/${item}.1 ${destroot}${prefix}/share/man/man1
    81     }
    82 
    83     foreach item {cpath google rcmac setvolume trash wiki} {
    84         copy ${worksrcpath}/${item}/${item} ${destroot}${prefix}/bin
    85         copy ${worksrcpath}/${item}/${item}.1 ${destroot}${prefix}/share/man/man1
    86     }
    87     copy ${worksrcpath}/osxutils/osxutils ${destroot}${prefix}/bin
    88     delete ${destroot}/usr
    89 }
     38# ${prefix}/bin/fileinfo
     39conflicts-append    leptonica
Note: See TracChangeset for help on using the changeset viewer.