source: trunk/dports/textproc/openjade/Portfile

Last change on this file was 153055, checked in by ryandesign@…, 10 months ago

openjade: use xinstall

Don't use system just to install files

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 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 153055 2016-09-22 23:53:40Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       xmlcatalog 1.0
6
7name            openjade
8version         1.3.2
9revision        10
10categories      textproc
11license         MIT
12maintainers     gmail.com:tlockhart1976 openmaintainer
13description     James Clarks implementation of DSSSL
14long_description \
15    OpenJade is an implementation of ISO/IEC 10179:1996 \
16    standard DSSSL language.
17homepage        http://openjade.sourceforge.net/
18platforms       darwin freebsd
19master_sites    sourceforge
20
21checksums       rmd160  3b12f6596a42c49a60cc07cd9b8f4c5fdf3bafd2 \
22                sha256  1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1
23
24patchfiles      patch-clang.diff \
25                patch-GroveApp.h.diff \
26                patch-GroveBuilder.cxx.diff \
27                patch-Node.h.diff \
28                patch-openjade-getoptperl.diff \
29                patch-delete_la_files.diff
30
31depends_lib-append  port:opensp
32
33set openjade.catalog ${prefix}/share/sgml/catalog
34set openjade.rootcatalog ${prefix}/share/sgml/openjade/catalog
35
36sgml.catalog ${openjade.rootcatalog}
37# Add the root catalog to the openjade catalog
38sgml.addtocatalog "${openjade.catalog}" "${sgml.rootcatalog}"
39
40configure.args  --enable-http --enable-html --enable-mif \
41                --disable-dependency-tracking \
42                --enable-default-catalog=${openjade.catalog} \
43                --datadir=${prefix}/share/sgml/openjade \
44                --mandir=${prefix}/share/man
45
46# Fix build failure on Tiger due to use of -isystem
47compiler.blacklist      gcc-4.0 gcc-3.3
48
49set cxx_stdlibflags {}
50if {[string match *clang* ${configure.cxx}]} {
51    set cxx_stdlibflags "-stdlib=${configure.cxx_stdlib}"
52}
53
54configure.env-append        LIBS="-L${prefix}/lib"
55configure.cxxflags-append   "-isystem ${prefix}/include -fno-rtti"
56configure.ldflags-delete    "-L${prefix}/lib"
57
58post-configure  {
59    reinplace "s|^#pragma implementation||g" ${worksrcpath}/grove/Node.cxx
60    reinplace "s|^#pragma implementation||g" ${worksrcpath}/msggen.pl
61    reinplace "s|^#pragma implementation||g" ${worksrcpath}/spgrove/GroveApp.cxx
62    reinplace "s|^#pragma implementation||g" ${worksrcpath}/style/MessageModule.cxx
63    reinplace "s|^#pragma interface||g" ${worksrcpath}/generic/EventGenerator.h
64    reinplace "s|^#pragma interface||g" ${worksrcpath}/generic/ParserEventGeneratorKit.h
65    reinplace "s|^#pragma interface||g" ${worksrcpath}/generic/SGMLApplication.h
66    reinplace "s|^#pragma interface||g" ${worksrcpath}/grove/Node.h
67    reinplace "s|^#pragma interface||g" ${worksrcpath}/msggen.pl
68    reinplace "s|^#pragma interface||g" ${worksrcpath}/spgrove/GroveApp.h
69    reinplace "s|^CXX=.*$|CXX='${configure.cxx} [get_canonical_archflags] ${cxx_stdlibflags}'|g" ${worksrcpath}/libtool
70    reinplace "s|^CC=.*$|CC='${configure.cc} [get_canonical_archflags]'|g" ${worksrcpath}/libtool
71}
72
73destroot.target install install-man
74
75post-destroot {
76    xinstall -d ${destroot}${prefix}/share/sgml/openjade
77    xinstall -m 644 {*}[glob ${worksrcpath}/dsssl/*] ${destroot}${prefix}/share/sgml/openjade
78}
Note: See TracBrowser for help on using the repository browser.