/[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.10 - (hide annotations) (download)
Thu Jul 19 23:42:37 2012 UTC (2 years, 1 month ago) by floppym
Branch: MAIN
Changes since 1.9: +4 -3 lines
Pass SHELL=/bin/bash on the emake command line to avoid bug 427090.

(Portage version: 2.2.0_alpha119/cvs/Linux x86_64)

1 floppym 1.10 # Copyright 1999-2012 Gentoo Foundation
2 mr_bones_ 1.1 # Distributed under the terms of the GNU General Public License v2
3 floppym 1.10 # $Header: /var/cvsroot/gentoo-x86/app-text/openjade/openjade-1.3.2-r3.ebuild,v 1.9 2011/05/14 14:51:25 angelos Exp $
4 mr_bones_ 1.1
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="as-is"
14     SLOT="0"
15 xarthisius 1.8 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
16 mr_bones_ 1.1 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 angelos 1.9 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 mr_bones_ 1.1 # 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.in
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 floppym 1.10 emake -j1 SHELL=/bin/bash || die "make failed"
60 mr_bones_ 1.1 }
61    
62     src_install() {
63     insinto /usr/$(get_libdir)
64    
65     make DESTDIR="${D}" \
66     libdir=/usr/$(get_libdir) \
67 floppym 1.10 SHELL=/bin/bash \
68 mr_bones_ 1.1 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