source: trunk/dports/textproc/sgml-common/Portfile

Last change on this file was 122667, checked in by mojca@…, 3 years ago

change email of Thomas Lockhart

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 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 122667 2014-07-26 12:03:22Z ryandesign@macports.org $
3PortSystem 1.0
4PortGroup xmlcatalog 1.0
5
6name                sgml-common
7version             0.6.3
8set openjade_version 1.3.2
9revision            1
10categories          textproc
11platforms           darwin
12license             GPL-2+
13maintainers         gmail.com:tlockhart1976 openmaintainer
14supported_archs     noarch
15# Actually - there is no homepage of this project, on that URL
16# page you could get complete ISO 8879 listing as was on the
17# old page - only part of it is included in sgml-common package.
18homepage            http://www.w3.org/2003/entities/
19description         A collection of entities and DTDs common to multiple packages.
20long_description \
21    The sgml-common package contains a collection of entities and DTDs \
22    that are useful for processing SGML, but that don't need to be \
23    included in multiple packages.  Sgml-common also includes an \
24    up-to-date Open Catalog file. \
25    Transcribed from the Fedora 15 RPM written originally by \
26    Tim Waugh <twaugh@redhat.com> based on work by Eric Bischoff \
27    and with recent maintenance by Ondrej Vasik <ovasik@redhat.com>.
28
29master_sites        ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/:redhat \
30                    sourceforge:project/openjade/openjade/${openjade_version}:openjade
31
32extract.suffix      .tgz
33set openjade        openjade-${openjade_version}
34
35distfiles           ${distname}${extract.suffix}:redhat \
36                    ${openjade}.tar.gz:openjade
37
38checksums           ${distname}${extract.suffix} \
39                    rmd160  246d01272f70cd8382a7d596392e61d7dc0eec78 \
40                    sha256  7dc418c1d361123ffc5e45d61f1b97257940a8eb35d0bfbbc493381cc5b1f959 \
41                    ${openjade}.tar.gz \
42                    rmd160  3b12f6596a42c49a60cc07cd9b8f4c5fdf3bafd2 \
43                    sha256  1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1
44
45depends_lib-append  port:perl5 \
46                    port:libxml2
47
48set sgmldir ${prefix}/share/sgml
49
50patch.pre_args      -p1
51patchfiles          patch-bin-install-catalog.in.diff \
52                    patch-config-sgml.conf.diff \
53                    patch-xml-iso-entities-Makefile.am.diff \
54                    patch-xml-iso-entities-Makefile.in.diff
55
56post-patch {
57    reinplace "s|@PREFIX@|${prefix}|" \
58        ${worksrcpath}/config/sgml.conf
59}
60
61use_configure       no
62
63build {}
64
65destroot {
66    xinstall -d ${destroot}${sgml.confdir}
67    xinstall ${worksrcpath}/config/sgml.conf ${destroot}${sgml.confdir}/sgml.conf
68    xinstall -d ${destroot}${sgmldir}
69    # Following 4 from openjade/pubtext - same maintainer as in SGML-common, so up2date:
70    xinstall -W ${workpath}/${openjade}/pubtext xml.dcl xml.soc html.dcl html.soc ${destroot}${sgmldir}
71}
Note: See TracBrowser for help on using the repository browser.