diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-libs/xpa/xpa-2.1.17.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-libs/xpa/xpa-2.1.17.ebuild')
-rw-r--r-- | x11-libs/xpa/xpa-2.1.17.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/x11-libs/xpa/xpa-2.1.17.ebuild b/x11-libs/xpa/xpa-2.1.17.ebuild new file mode 100644 index 000000000000..926c80687052 --- /dev/null +++ b/x11-libs/xpa/xpa-2.1.17.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils autotools + +DESCRIPTION="Messaging system providing communication between programs" +HOMEPAGE="https://github.com/ericmandel/xpa" +SRC_URI="https://github.com/ericmandel/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0/1" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="doc static-libs" + +RDEPEND=" + dev-lang/tcl:0= + x11-libs/libXt:0" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.1.8-makefile.patch + sed -i -e "s:\${LINK}:\${LINK} ${LDFLAGS}:" mklib || die + eautoconf +} + +src_configure() { + econf \ + --enable-shared \ + --enable-threaded-xpans \ + --with-x \ + --with-tcl \ + --with-threads +} + +src_compile() { + emake shlib tclxpa +} + +src_install () { + dodir /usr/$(get_libdir) + emake INSTALL_ROOT="${D}" install + insinto /usr/$(get_libdir)/tclxpa + doins pkgIndex.tcl + mv "${ED}"/usr/$(get_libdir)/libtclxpa* \ + "${ED}"/usr/$(get_libdir)/tclxpa/ || die + dodoc README + use doc && dodoc doc/*.pdf && dohtml doc/*.html + # build system so crappy not worth patching to a non respondant upstream + # and builds static with PIC + use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*.a +} |