source: trunk/dports/textproc/xmlroff/Portfile @ 84027

Last change on this file since 84027 was 84027, checked in by jmr@…, 8 years ago

xmlroff: add pkgconfig dep

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 84027 2011-09-15 03:06:23Z jmr@macports.org $
2
3PortSystem                      1.0
4
5name                            xmlroff
6version                         0.5.1
7categories                      textproc
8maintainers                     nomaintainer
9description                     An XSL formatter producing PDF and PostScript.
10long_description \
11        Creates formatted output -- pages containing text in a variety \
12        of type styles and sizes -- from an input XML document and an XSL \
13        stylesheet.
14
15homepage                        http://xmlroff.org/
16master_sites                    ${homepage}download/
17
18platforms                       darwin
19checksums                       md5 83cc19e284efb140008d11863fe74ff2
20
21depends_build                   port:pkgconfig
22depends_lib                     lib:libxml2.2:libxml2 \
23                                lib:libatk-1.0:atk \
24                                path:lib/pkgconfig/glib-2.0.pc:glib2 \
25                                lib:libgtk.2:gtk2 \
26                                lib:libart_lgpl_2:libart_lgpl \
27                                lib:libbonobo-2:libbonobo \
28                                lib:libgnomeprint-2.2:libgnomeprint \
29                                lib:libIDL-2:libidl \
30                                lib:libxslt:libxslt \
31                                lib:libORBit-2.0:orbit2 \
32                                path:lib/pkgconfig/pango.pc:pango \
33                                lib:libpangoxsl-1:pangoxsl
34
35configure.ldflags-append        "-framework CoreFoundation"
36
37# Specify catalog to add (catalog for xmlroff's libfo library)
38set libfocatalog ${prefix}/share/xml/libfo-${version}/catalog.xml
39
40post-activate {
41    # xmlcatmgr as installed by MacPorts defaults to using
42    # ${prefix}/etc/xml/docbook (for XML) and ${prefix}/etc/xml/docbook (for
43    # SGML) if no catalog is specified, but we'll specify the path just in case
44    # users have another installation of xmlcatmgr and happen to have it before
45    # ${prefix}/bin in their PATH.
46    set catalog.xml ${prefix}/etc/xml/catalog
47
48    # Make the directory if it doesn't exist
49    if {![file exists ${prefix}/etc/xml]} {
50        xinstall -m 755 -d ${prefix}/etc/xml
51    }
52
53    # Create the catalog file if it doesn't exist
54    if {![file exists ${catalog.xml}]} {
55        system "xmlcatmgr create -c ${catalog.xml}"
56    }
57
58    # Add the nextCatalog entry to the catalog if it doesn't exist
59    if {[catch {exec xmlcatmgr lookup ${libfocatalog}}]} {
60        system "xmlcatmgr add nextCatalog ${libfocatalog}"
61    }
62}
63
64# This will remove the catalog entry for this port.
65post-deactivate {
66    system "xmlcatmgr remove nextCatalog ${libfocatalog}"
67}
Note: See TracBrowser for help on using the repository browser.