source: trunk/dports/multimedia/MobileDevice/Portfile

Last change on this file was 142815, checked in by jmr@…, 20 months ago

various ports: remove redundant clearing of python.link_binaries_suffix, the portgroup now handles this

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 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 142815 2015-11-24 03:22:35Z ryandesign@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
27
28post-extract {
29    # MobileDevice needs to be built in a directory named "MobileDevice"
30    if {![file exists ${worksrcpath}]} {
31        move [glob ${workpath}/${name}-*] ${worksrcpath}
32    }
33}
34
35patchfiles            patch-setup.py-fix-name-and-version.diff
36post-patch {
37    reinplace "s#@VERSION@#${version}#" ${worksrcpath}/setup.py
38}
39
40post-destroot {
41    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
42    xinstall -m 0644 ${worksrcpath}/LICENSE ${destroot}${prefix}/share/doc/${name}/
43}
Note: See TracBrowser for help on using the repository browser.