source: trunk/dports/print/gutenprint/Portfile

Last change on this file was 142972, checked in by devans@…, 2 years ago

gutenprint: update descriptions, add openmaintainer, add +quartz variant, and use active_variants to check for correct flavor of gimp2, increment revision.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 142972 2015-11-30 18:21:57Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       active_variants 1.1
6
7name            gutenprint
8version         5.2.10
9revision        1
10license         GPL-2+
11set branch      [join [lrange [split ${version} .] 0 1] .]
12categories      print
13maintainers     devans openmaintainer
14homepage        http://gimp-print.sourceforge.net/
15platforms       darwin
16
17description     GIMP Print Plugin
18long_description \
19    Gutenprint plugin for GIMP.
20
21universal_variant no
22
23master_sites    sourceforge:gimp-print
24use_bzip2       yes
25
26checksums       sha256  431f352b412dfb9809d126a85a37a1fcd1c1826275ace8cdcd4fd9a6ee360e59 \
27                rmd160  46d214b3371eaa8aa0fc746eba362068668211ab
28
29depends_lib     path:lib/pkgconfig/gimp-2.0.pc:gimp2
30
31pre-fetch {
32    ui_msg "
33            This port only installs the Gutenprint plugin for GIMP.
34            You can get the complete Gutenprint drivers and utilities - except the gimp plugin - from
35            http://gimp-print.sourceforge.net
36            "
37}
38
39configure.args  --disable-escputil \
40                --disable-samples \
41                --disable-test \
42                --without-cups \
43                --without-readline \
44                --with-gimp2-as-gutenprint
45
46post-configure {
47    foreach i {iconv intl} {
48        reinplace "s|${prefix}/lib/lib${i}.dylib|-l${i}|g" \
49            ${worksrcpath}/src/main/Makefile
50    }
51}
52
53post-destroot {
54    file delete -force ${destroot}/usr
55}
56
57variant quartz {}
58
59if {[variant_isset quartz]} {
60    require_active_variants gimp2 quartz
61} else {
62    require_active_variants gimp2 "" quartz
63}
64
65livecheck.type          regex
66livecheck.url           ${homepage}
67livecheck.regex         >Gutenprint (\[0-9.\]+) is released!<
68
Note: See TracBrowser for help on using the repository browser.