source: trunk/dports/multimedia/MobileDevice/Portfile @ 117783

Last change on this file since 117783 was 117783, checked in by cal@…, 5 years ago

new port: MobileDevice, closes #42596

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 117783 2014-03-12 20:40:25Z cal@macports.org $
3
4PortSystem            1.0
5PortGroup             python 1.0
6PortGroup             github 1.0
7
8github.setup          mountainstorm MobileDevice 9ff885494197aeb790ba5b156212418b83218d47
9
10version               1.0.99
11categories            multimedia python
12platforms             darwin
13license               MIT
14supported_archs       noarch
15maintainers           m4x.org:db_macports openmaintainer
16worksrcdir            MobileDevice
17
18description           Tool providing access to iOS devices
19long_description      \
20        A python package, and command line tool, which wraps Apple's \
21        MobileDevice API - providing access to iOS devices.
22
23checksums             sha256 cc46bf108fe6eb884a124b67c63fcf60b48f89dece70f4931d5ade40066931a5 \
24                      rdm160 605e46f19fe89da2336d43360f3664531c095b69
25
26python.default_version 27
27python.link_binaries_suffix
28
29post-extract {
30    # MobileDevice needs to be built in a directory named "MobileDevice"
31    if {![file exists ${worksrcpath}]} {
32        move [glob ${workpath}/${name}-*] ${worksrcpath}
33    }
34}
35
36patchfiles            patch-setup.py-fix-name-and-version.diff
37post-patch {
38    reinplace "s#@VERSION@#${version}#" ${worksrcpath}/setup.py
39}
40
41post-destroot {
42    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
43    xinstall -m 0644 ${worksrcpath}/LICENSE ${destroot}${prefix}/share/doc/${name}/
44}
Note: See TracBrowser for help on using the repository browser.