source: trunk/dports/sysutils/isightcapture/Portfile @ 28151

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

isightcapture: change the representation of the version in the portfile

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 28151 2007-08-22 23:06:20Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    isightcapture
6version                 1.1
7set version2            [strsed ${version} {g/[.]/_/}]
8categories              sysutils graphics
9maintainers             ryandesign
10homepage                http://www.intergalactic.de/hacks.html
11master_sites            http://www.intergalactic.de/
12distname                ${name}${version2}
13extract.suffix          .dmg
14
15description \
16        captures a frame from an iSight camera and saves it to a file
17
18long_description \
19        iSightCapture captures a single frame from an attached iSight camera \
20        and saves it to a file. It works even when no graphical user is logged \
21        in, unlike many other applications. iSightCapture has only been tested \
22        with Mac OS X Tiger and iSight.
23
24checksums \
25        md5 b0adf800e285ca0bc46f20d2450d45fa \
26        sha1 038cc8852641c4ca10f4960eb30d508a0e9b99c1 \
27        rmd160 fcbfc6bf0dd08d3b8a4a268378a57b54a5bfd82e
28
29set dmg_mount /tmp/${name}-${version}
30
31extract {
32        file mkdir ${dmg_mount}
33        system "hdiutil attach ${distpath}/${distname}${extract.suffix} -private -nobrowse -mountpoint ${dmg_mount}"
34}
35
36use_configure no
37
38build {}
39
40destroot {
41        xinstall -m 755 ${dmg_mount}/${name} ${destroot}${prefix}/bin
42}
43
44post-destroot {
45        system "hdiutil detach ${dmg_mount}"
46        file delete -force ${dmg_mount}
47}
48
49# iSightCapture is already universal, so let's advertise that.
50default_variants +universal
51variant universal {}
52
53livecheck.check     regex
54livecheck.version   ${version2}
55livecheck.regex     ${name}(\[0-9._\]+)\\.dmg
Note: See TracBrowser for help on using the repository browser.