diff options
author | Mike Gilbert <floppym@gentoo.org> | 2012-04-15 18:39:45 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2012-04-15 18:39:45 +0000 |
commit | abc6643cbc65e3d0a254605eeb40ea5764a5e867 (patch) | |
tree | 09128808c83e1069d86b97a443ba192394b7f4a2 /app-text | |
parent | Add back ia64 love #349020 by Dennis Schridde. (diff) | |
download | gentoo-2-abc6643cbc65e3d0a254605eeb40ea5764a5e867.tar.gz gentoo-2-abc6643cbc65e3d0a254605eeb40ea5764a5e867.tar.bz2 gentoo-2-abc6643cbc65e3d0a254605eeb40ea5764a5e867.zip |
Call eautoreconf to refresh the build system for bug 412093.
(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/openjade/ChangeLog | 10 | ||||
-rw-r--r-- | app-text/openjade/files/openjade-1.3.2-acinclude.m4 | 61 | ||||
-rw-r--r-- | app-text/openjade/openjade-1.3.2-r4.ebuild | 106 |
3 files changed, 175 insertions, 2 deletions
diff --git a/app-text/openjade/ChangeLog b/app-text/openjade/ChangeLog index 7d6c50d80616..04b25d420e2e 100644 --- a/app-text/openjade/ChangeLog +++ b/app-text/openjade/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-text/openjade -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/openjade/ChangeLog,v 1.64 2011/05/14 14:51:25 angelos Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/openjade/ChangeLog,v 1.65 2012/04/15 18:39:45 floppym Exp $ + +*openjade-1.3.2-r4 (15 Apr 2012) + + 15 Apr 2012; Mike Gilbert <floppym@gentoo.org> + +files/openjade-1.3.2-acinclude.m4, +openjade-1.3.2-r4.ebuild: + Call eautoreconf to refresh the build system for bug 412093. 14 May 2011; Christoph Mende <angelos@gentoo.org> openjade-1.3.2-r3.ebuild, +files/openjade-1.3.2-gcc46.patch: diff --git a/app-text/openjade/files/openjade-1.3.2-acinclude.m4 b/app-text/openjade/files/openjade-1.3.2-acinclude.m4 new file mode 100644 index 000000000000..7bb6d2cb1f81 --- /dev/null +++ b/app-text/openjade/files/openjade-1.3.2-acinclude.m4 @@ -0,0 +1,61 @@ +dnl Configure-time switch with default +dnl +dnl Each switch defines an --enable-FOO and --disable-FOO option in +dnl the resulting configure script. +dnl +dnl Usage: +dnl smr_SWITCH(name, description, default, pos-def, neg-def) +dnl +dnl where: +dnl +dnl name name of switch; generates --enable-name & --disable-name +dnl options +dnl description help string is set to this prefixed by "enable" or +dnl "disable", whichever is the non-default value +dnl default either "on" or "off"; specifies default if neither +dnl --enable-name nor --disable-name is specified +dnl pos-def a symbol to AC_DEFINE if switch is on (optional) +dnl neg-def a symbol to AC_DEFINE if switch is off (optional) +dnl +AC_DEFUN(smr_SWITCH, [ + AC_MSG_CHECKING(whether to enable $2) + AC_ARG_ENABLE( + $1, + ifelse($3, on, + [ --disable-[$1] disable [$2]], + [ --enable-[$1] enable [$2]]), + [ if test "$enableval" = yes; then + AC_MSG_RESULT(yes) + ifelse($4, , , AC_DEFINE($4)) + else + AC_MSG_RESULT(no) + ifelse($5, , , AC_DEFINE($5)) + fi ], + ifelse($3, on, + [ AC_MSG_RESULT(yes) + ifelse($4, , , AC_DEFINE($4)) ], + [ AC_MSG_RESULT(no) + ifelse($5, , , AC_DEFINE($5))]))]) + +dnl +dnl Examine size_t and define SIZE_T_IS_UINT, if size_t is an unsigned int +dnl +AC_DEFUN(OJ_SIZE_T_IS_UINT,[ + AC_REQUIRE([AC_TYPE_SIZE_T]) + AC_MSG_CHECKING(whether size_t is unsigned int) + ac_cv_size_t_is_uint=no + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + AC_TRY_COMPILE([#include <unistd.h> + + template<class T> class foo { }; + + ], [ + foo<size_t> x; + foo<unsigned int> y; + x = y; + ],ac_cv_size_t_is_uint=yes) + AC_LANG_RESTORE + AC_MSG_RESULT($ac_cv_size_t_is_uint) + test "$ac_cv_size_t_is_uint" = "yes" && AC_DEFINE(SIZE_T_IS_UINT) +]) diff --git a/app-text/openjade/openjade-1.3.2-r4.ebuild b/app-text/openjade/openjade-1.3.2-r4.ebuild new file mode 100644 index 000000000000..aafc5dfb4830 --- /dev/null +++ b/app-text/openjade/openjade-1.3.2-r4.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/openjade/openjade-1.3.2-r4.ebuild,v 1.1 2012/04/15 18:39:44 floppym Exp $ + +EAPI=2 + +inherit autotools sgml-catalog eutils flag-o-matic multilib + +DESCRIPTION="Jade is an implementation of DSSSL - an ISO standard for formatting SGML and XML documents" +HOMEPAGE="http://openjade.sourceforge.net" +SRC_URI="mirror://sourceforge/openjade/${P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" +IUSE="static-libs" + +RDEPEND="app-text/sgml-common + >=app-text/opensp-1.5.1" +DEPEND="dev-lang/perl + ${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-deplibs.patch + epatch "${FILESDIR}"/${P}-ldflags.patch + epatch "${FILESDIR}"/${P}-msggen.pl.patch + epatch "${FILESDIR}"/${P}-respect-ldflags.patch + epatch "${FILESDIR}"/${P}-libosp-la.patch + epatch "${FILESDIR}"/${P}-gcc46.patch + + # Please note! Opts are disabled. If you know what you're doing + # feel free to remove this line. It may cause problems with + # docbook-sgml-utils among other things. + ALLOWED_FLAGS="-O -O1 -O2 -pipe -g -march" + strip-flags + + # Default CFLAGS and CXXFLAGS is -O2 but this make openjade segfault + # on hppa. Using -O1 works fine. So I force it here. + use hppa && replace-flags -O2 -O1 + + ln -s config/configure.in configure.in || die + cp "${FILESDIR}"/${P}-acinclude.m4 acinclude.m4 || die + rm config/missing || die + + AT_NOEAUTOMAKE=yes + eautoreconf + + SGML_PREFIX=/usr/share/sgml +} + +src_configure() { + econf \ + --enable-http \ + --enable-default-catalog=/etc/sgml/catalog \ + --enable-default-search-path=/usr/share/sgml \ + --libdir=/usr/$(get_libdir) \ + --datadir=/usr/share/sgml/${P} \ + $(use_enable static-libs static) +} + +src_compile() { + emake -j1 || die "make failed" +} + +src_install() { + insinto /usr/$(get_libdir) + + make DESTDIR="${D}" \ + libdir=/usr/$(get_libdir) \ + install install-man || die "make install failed" + + dosym openjade /usr/bin/jade + dosym onsgmls /usr/bin/nsgmls + dosym osgmlnorm /usr/bin/sgmlnorm + dosym ospam /usr/bin/spam + dosym ospent /usr/bin/spent + dosym osx /usr/bin/sgml2xml + + insinto /usr/share/sgml/${P}/ + doins dsssl/builtins.dsl + + echo 'SYSTEM "builtins.dsl" "builtins.dsl"' > ${D}/usr/share/sgml/${P}/catalog + insinto /usr/share/sgml/${P}/dsssl + doins dsssl/{dsssl.dtd,style-sheet.dtd,fot.dtd} + newins "${FILESDIR}"/${P}.dsssl-catalog catalog +# Breaks sgml2xml among other things +# insinto /usr/share/sgml/${P}/unicode +# doins unicode/{catalog,unicode.sd,unicode.syn,gensyntax.pl} + insinto /usr/share/sgml/${P}/pubtext + doins pubtext/* + + dodoc NEWS README VERSION + dohtml doc/*.htm + + insinto /usr/share/doc/${PF}/jadedoc + doins jadedoc/*.htm + insinto /usr/share/doc/${PF}/jadedoc/images + doins jadedoc/images/* +} + +sgml-catalog_cat_include "/etc/sgml/${P}.cat" \ + "/usr/share/sgml/openjade-${PV}/catalog" +sgml-catalog_cat_include "/etc/sgml/${P}.cat" \ + "/usr/share/sgml/openjade-${PV}/dsssl/catalog" +sgml-catalog_cat_include "/etc/sgml/sgml-docbook.cat" \ + "/etc/sgml/${P}.cat" |