source: trunk/dports/tex/pgf/Portfile

Last change on this file was 139463, checked in by ryandesign@…, 2 years ago

pgf: update to 3.0.1 (#48595)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 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 139463 2015-08-17 23:34:34Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           texlive 1.0
6
7name                pgf
8version             3.0.1
9categories          tex textproc
10platforms           darwin
11license             {GPL-2 LPPL-1.3}
12maintainers         nomaintainer
13
14supported_archs     noarch
15
16description         PGF and TikZ -- Graphic systems for TeX
17long_description    PGF is a TeX macro package for generating graphics. \
18                    It is platform- and format-independent and works \
19                    together with the most important TeX backend \
20                    drivers, including pdftex and dvips. It comes \
21                    with a user-friedly syntax layer called TikZ.
22homepage            http://sourceforge.net/projects/pgf/
23
24depends_lib         bin:texhash:texlive-basic
25
26master_sites        sourceforge:project/pgf/pgf/version%20${version}
27use_zip             yes
28distname            ${name}_${version}.tds
29
30checksums           rmd160  208d16f9c993c2e6400cf79123c2502c6c4f3a9c \
31                    sha256  a0f374ff2a66e8d24995b571cc74f773fd58f81d63bf719d73af326c280bdb99
32
33extract.mkdir       yes
34
35# the patchfiles are only relevant if building the C code gets enabled one day,
36# but the patches are not complete yet (building the module is not working)
37patchfiles          patch-MakefileConfig.mk.diff \
38                    patch-Makefile.diff
39post-patch {
40    # instead of patching all this one could also create LocalMakefileConfig.mk
41    set mymakefileconfig ${worksrcpath}/source/generic/pgf/c/config/MakefileConfig.mk
42    reinplace s|@@PREFIX@@|${prefix}| ${mymakefileconfig}
43    reinplace s|@@CC@@|${configure.cc}| ${mymakefileconfig}
44    reinplace s|@@ARCHFLAGS@@|-arch\ ${build_arch}| ${mymakefileconfig}
45    reinplace s|@@CFLAGS@@|${configure.cflags}| ${mymakefileconfig}
46    reinplace s|@@LDFLAGS@@|${configure.ldflags}\ -llua| ${mymakefileconfig}
47}
48
49use_configure       no
50
51# we won't build anything for now, but if anyone wants to finish the work,
52# see https://trac.macports.org/ticket/42088
53build { }
54# build.dir         ${worksrcpath}/source/generic/pgf/c
55
56destroot {
57    set r ${workpath}/${name}_${version}.tds
58    file mkdir ${destroot}${texlive_texmfports}/
59    file copy ${r}/doc ${destroot}${texlive_texmfports}/
60    file copy ${r}/source ${destroot}${texlive_texmfports}/
61    file copy ${r}/tex ${destroot}${texlive_texmfports}/
62}
63
64post-activate {
65    texlive.mktexlsr
66}
67
68post-deactivate {
69    texlive.mktexlsr
70}
71
72livecheck.regex     {/version ([.\d]+)}
Note: See TracBrowser for help on using the repository browser.