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

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

xmlroff: update homepage and master_sites

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 84026 2011-09-15 02:56:08Z 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_lib                     lib:libxml2.2:libxml2 \
22                                lib:libatk-1.0:atk \
23                                path:lib/pkgconfig/glib-2.0.pc:glib2 \
24                                lib:libgtk.2:gtk2 \
25                                lib:libart_lgpl_2:libart_lgpl \
26                                lib:libbonobo-2:libbonobo \
27                                lib:libgnomeprint-2.2:libgnomeprint \
28                                lib:libIDL-2:libidl \
29                                lib:libxslt:libxslt \
30                                lib:libORBit-2.0:orbit2 \
31                                path:lib/pkgconfig/pango.pc:pango \
32                                lib:libpangoxsl-1:pangoxsl
33
34configure.ldflags-append        "-framework CoreFoundation"
35
36# Specify catalog to add (catalog for xmlroff's libfo library)
37set libfocatalog ${prefix}/share/xml/libfo-${version}/catalog.xml
38
39post-activate {
40    # xmlcatmgr as installed by MacPorts defaults to using
41    # ${prefix}/etc/xml/docbook (for XML) and ${prefix}/etc/xml/docbook (for
42    # SGML) if no catalog is specified, but we'll specify the path just in case
43    # users have another installation of xmlcatmgr and happen to have it before
44    # ${prefix}/bin in their PATH.
45    set catalog.xml ${prefix}/etc/xml/catalog
46
47    # Make the directory if it doesn't exist
48    if {![file exists ${prefix}/etc/xml]} {
49        xinstall -m 755 -d ${prefix}/etc/xml
50    }
51
52    # Create the catalog file if it doesn't exist
53    if {![file exists ${catalog.xml}]} {
54        system "xmlcatmgr create -c ${catalog.xml}"
55    }
56
57    # Add the nextCatalog entry to the catalog if it doesn't exist
58    if {[catch {exec xmlcatmgr lookup ${libfocatalog}}]} {
59        system "xmlcatmgr add nextCatalog ${libfocatalog}"
60    }
61}
62
63# This will remove the catalog entry for this port.
64post-deactivate {
65    system "xmlcatmgr remove nextCatalog ${libfocatalog}"
66}
Note: See TracBrowser for help on using the repository browser.