/[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.10 - (hide annotations) (download)
Thu Jul 12 14:58:55 2012 UTC (2 years, 1 month ago) by hattya
Branch: MAIN
Changes since 1.9: +2 -2 lines
ia64 stable wrt bug #410273

(Portage version: 2.1.10.65/cvs/Linux i686)

1 floppym 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 hattya 1.10 # $Header: /var/cvsroot/gentoo-x86/app-text/opensp/opensp-1.5.2-r3.ebuild,v 1.9 2012/06/27 01:30:01 jer Exp $
4 floppym 1.1
5     EAPI=2
6     inherit eutils flag-o-matic
7    
8     MY_P=${P/opensp/OpenSP}
9     DESCRIPTION="A free, object-oriented toolkit for SGML parsing and entity management"
10     HOMEPAGE="http://openjade.sourceforge.net/"
11     SRC_URI="mirror://sourceforge/openjade/${MY_P}.tar.gz"
12    
13     LICENSE="JamesClark"
14     SLOT="0"
15 hattya 1.10 KEYWORDS="~alpha amd64 arm hppa ia64 ~m68k ~mips ~ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
16 floppym 1.1 IUSE="doc nls static-libs test"
17    
18     DEPEND="nls? ( >=sys-devel/gettext-0.14.5 )
19     doc? (
20     app-text/xmlto
21 floppym 1.2 app-text/docbook-xml-dtd:4.1.2
22 floppym 1.1 )
23 mr_bones_ 1.3 test? (
24 floppym 1.2 app-text/openjade
25     app-text/sgml-common
26     )"
27 floppym 1.1 RDEPEND=""
28    
29     S=${WORKDIR}/${MY_P}
30    
31     src_prepare() {
32     epatch "${FILESDIR}"/${PN}-1.5-gcc34.patch
33     epatch "${FILESDIR}"/${P}-fix-segfault.patch
34     }
35    
36     src_configure() {
37     #
38     # The following filters are taken from openjade's ebuild. See bug #100828.
39     #
40    
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     --disable-dependency-tracking \
49     --enable-http \
50     --enable-default-catalog=/etc/sgml/catalog \
51     --enable-default-search-path=/usr/share/sgml \
52     --datadir=/usr/share/sgml/${P} \
53     $(use_enable nls) \
54     $(use_enable doc doc-build) \
55     $(use_enable static-libs static)
56     }
57    
58     src_compile() {
59     emake pkgdocdir=/usr/share/doc/${PF} || die "Compilation failed"
60     }
61    
62     src_test() {
63     echo ">>> Test phase [check]: ${CATEGORY}/${PF}"
64     einfo "Skipping tests known not to work"
65     make SHOWSTOPPERS= check || die "Make test failed"
66     SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}"
67     }
68    
69     src_install() {
70     emake DESTDIR="${D}" \
71     pkgdocdir=/usr/share/doc/${PF} install || die "Installation failed"
72    
73     dodoc AUTHORS BUGS ChangeLog NEWS README
74     }
75    
76     pkg_postinst() {
77     ewarn "Please note that the soname of the library changed."
78     ewarn "If you are upgrading from a previous version you need"
79     ewarn "to fix dynamic linking inconsistencies by executing:"
80     ewarn
81     ewarn " revdep-rebuild --library='libosp.so.*'"
82     }

  ViewVC Help
Powered by ViewVC 1.1.20