/[gentoo-x86]/app-text/openjade/openjade-1.3.2-r3.ebuild
Gentoo

Contents of /app-text/openjade/openjade-1.3.2-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Sat Mar 22 18:45:41 2014 UTC (15 months, 2 weeks ago) by kensington
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x06B1F38DCA45A1EC!)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/openjade/openjade-1.3.2-r3.ebuild,v 1.12 2013/01/02 21:38:35 floppym Exp $
4
5 EAPI=2
6
7 inherit libtool sgml-catalog eutils flag-o-matic multilib
8
9 DESCRIPTION="Jade is an implementation of DSSSL - an ISO standard for formatting SGML and XML documents"
10 HOMEPAGE="http://openjade.sourceforge.net"
11 SRC_URI="mirror://sourceforge/openjade/${P}.tar.gz"
12
13 LICENSE="MIT"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
16 IUSE="static-libs"
17
18 RDEPEND="app-text/sgml-common
19 >=app-text/opensp-1.5.1"
20 DEPEND="dev-lang/perl
21 ${RDEPEND}"
22
23 src_prepare() {
24 epatch "${FILESDIR}"/${P}-deplibs.patch \
25 "${FILESDIR}"/${P}-ldflags.patch \
26 "${FILESDIR}"/${P}-msggen.pl.patch \
27 "${FILESDIR}"/${P}-respect-ldflags.patch \
28 "${FILESDIR}"/${P}-libosp-la.patch \
29 "${FILESDIR}"/${P}-gcc46.patch
30
31 # Please note! Opts are disabled. If you know what you're doing
32 # feel free to remove this line. It may cause problems with
33 # docbook-sgml-utils among other things.
34 ALLOWED_FLAGS="-O -O1 -O2 -pipe -g -march"
35 strip-flags
36
37 # Default CFLAGS and CXXFLAGS is -O2 but this make openjade segfault
38 # on hppa. Using -O1 works fine. So I force it here.
39 use hppa && replace-flags -O2 -O1
40
41 ln -s config/configure.in configure.ac
42 #eautoreconf
43 elibtoolize
44
45 SGML_PREFIX=/usr/share/sgml
46 }
47
48 src_configure() {
49 econf \
50 --enable-http \
51 --enable-default-catalog=/etc/sgml/catalog \
52 --enable-default-search-path=/usr/share/sgml \
53 --libdir=/usr/$(get_libdir) \
54 --datadir=/usr/share/sgml/${P} \
55 $(use_enable static-libs static)
56 }
57
58 src_compile() {
59 emake -j1 SHELL=/bin/bash || die "make failed"
60 }
61
62 src_install() {
63 insinto /usr/$(get_libdir)
64
65 make DESTDIR="${D}" \
66 libdir=/usr/$(get_libdir) \
67 SHELL=/bin/bash \
68 install install-man || die "make install failed"
69
70 dosym openjade /usr/bin/jade
71 dosym onsgmls /usr/bin/nsgmls
72 dosym osgmlnorm /usr/bin/sgmlnorm
73 dosym ospam /usr/bin/spam
74 dosym ospent /usr/bin/spent
75 dosym osx /usr/bin/sgml2xml
76
77 insinto /usr/share/sgml/${P}/
78 doins dsssl/builtins.dsl
79
80 echo 'SYSTEM "builtins.dsl" "builtins.dsl"' > ${D}/usr/share/sgml/${P}/catalog
81 insinto /usr/share/sgml/${P}/dsssl
82 doins dsssl/{dsssl.dtd,style-sheet.dtd,fot.dtd}
83 newins "${FILESDIR}"/${P}.dsssl-catalog catalog
84 # Breaks sgml2xml among other things
85 # insinto /usr/share/sgml/${P}/unicode
86 # doins unicode/{catalog,unicode.sd,unicode.syn,gensyntax.pl}
87 insinto /usr/share/sgml/${P}/pubtext
88 doins pubtext/*
89
90 dodoc NEWS README VERSION
91 dohtml doc/*.htm
92
93 insinto /usr/share/doc/${PF}/jadedoc
94 doins jadedoc/*.htm
95 insinto /usr/share/doc/${PF}/jadedoc/images
96 doins jadedoc/images/*
97 }
98
99 sgml-catalog_cat_include "/etc/sgml/${P}.cat" \
100 "/usr/share/sgml/openjade-${PV}/catalog"
101 sgml-catalog_cat_include "/etc/sgml/${P}.cat" \
102 "/usr/share/sgml/openjade-${PV}/dsssl/catalog"
103 sgml-catalog_cat_include "/etc/sgml/sgml-docbook.cat" \
104 "/etc/sgml/${P}.cat"

  ViewVC Help
Powered by ViewVC 1.1.20