Ticket #40080: Portfile.2

File Portfile.2, 1.5 KB (added by smithsp (Sterling Smith), 11 years ago)

Revised portfile for proposed py-poppler port, addressing license clarification..

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$
3PortSystem          1.0
4PortGroup           python 1.0
5
6name                py-poppler
7version             0.12.1
8
9platforms           darwin
10supported_archs     noarch
11license             GPL-2
12maintainers         nomaintainer
13description         python bindings to the poppler library
14long_description    Python bindings for the Poppler PDF rendering library (glib).
15python.versions     26 27
16
17checksums           md5 1a89e5ed3042afc81bbd4d02e0cf640a \
18                    rmd160 d6c196d6bbbaa9ef96c2ea3a38eb6a89308bab15 \
19                    sha256 322f183d24798a056f3005d1ab8e3ac27d8cfbbf0982725b323bbfec1bab5355
20
21homepage            https://launchpad.net/poppler-python
22master_sites         ${homepage}/trunk/development/+download/
23distname            pypoppler-${version}
24
25patchfiles          patch_poppler.defs.diff \
26                    patch_poppler.override.diff
27
28
29
30if {$subport != $name} {
31    depends_lib-append  port:poppler port:python${python.version}
32    depends_build-append port:pkgconfig
33    use_configure       yes
34    configure.cmd       ./configure
35    configure.pkg_config_path \
36        ${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${python.prefix}/lib/pkgconfig/
37    configure.pre_args  --prefix=${python.prefix}
38
39    build.cmd           make
40    build.target        all
41
42    use_parallel_build  no
43
44    destroot.cmd        make
45    destroot.destdir    DESTDIR=${destroot}
46
47    livecheck.type      none
48}