/[gentoo-x86]/app-text/opensp/opensp-1.5.2-r3.ebuild
Gentoo

Contents of /app-text/opensp/opensp-1.5.2-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.18 - (show annotations) (download)
Wed Jun 25 19:55:40 2014 UTC (2 months, 3 weeks ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.17: +2 -1 lines
Add missing DEPEND, bug #515086 by Paolo Pedroni

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/opensp/opensp-1.5.2-r3.ebuild,v 1.17 2014/04/06 15:16:52 vapier Exp $
4
5 EAPI=5
6 inherit eutils flag-o-matic
7
8 MY_P=${P/opensp/OpenSP}
9
10 DESCRIPTION="A free, object-oriented toolkit for SGML parsing and entity management"
11 HOMEPAGE="http://openjade.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/openjade/${MY_P}.tar.gz"
13
14 LICENSE="MIT"
15 SLOT="0"
16 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
17 IUSE="doc nls static-libs test"
18
19 DEPEND="nls? ( sys-devel/gettext )
20 doc? (
21 app-text/xmlto
22 app-text/docbook-xml-dtd:4.1.2
23 )
24 test? (
25 app-text/docbook-xml-dtd:4.5
26 app-text/openjade
27 app-text/sgml-common
28 )"
29 RDEPEND=""
30
31 S=${WORKDIR}/${MY_P}
32
33 src_prepare() {
34 epatch \
35 "${FILESDIR}"/${PN}-1.5-gcc34.patch \
36 "${FILESDIR}"/${P}-fix-segfault.patch
37 }
38
39 src_configure() {
40 # The following filters are taken from openjade's ebuild. See bug #100828.
41 # Please note! Opts are disabled. If you know what you're doing
42 # feel free to remove this line. It may cause problems with
43 # docbook-sgml-utils among other things.
44 #ALLOWED_FLAGS="-O -O1 -O2 -pipe -g -march"
45 strip-flags
46
47 econf \
48 --enable-http \
49 --enable-default-catalog="${EPREFIX}"/etc/sgml/catalog \
50 --enable-default-search-path="${EPREFIX}"/usr/share/sgml \
51 --datadir="${EPREFIX}"/usr/share/sgml/${P} \
52 $(use_enable nls) \
53 $(use_enable doc doc-build) \
54 $(use_enable static-libs static)
55 }
56
57 src_compile() {
58 emake pkgdocdir="${EPREFIX}"/usr/share/doc/${PF}
59 }
60
61 src_test() {
62 # Skipping tests known not to work
63 emake SHOWSTOPPERS= check
64 SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}"
65 }
66
67 src_install() {
68 emake \
69 DESTDIR="${D}" \
70 pkgdocdir="${EPREFIX}"/usr/share/doc/${PF} \
71 install
72
73 prune_libtool_files
74
75 dodoc AUTHORS BUGS ChangeLog NEWS README
76 }

  ViewVC Help
Powered by ViewVC 1.1.20