summaryrefslogtreecommitdiff
path: root/x11-libs/xpa
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-libs/xpa
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-libs/xpa')
-rw-r--r--x11-libs/xpa/Manifest11
-rw-r--r--x11-libs/xpa/files/xpa-2.1.18-makefile.patch110
-rw-r--r--x11-libs/xpa/files/xpa-2.1.8-makefile.patch84
-rw-r--r--x11-libs/xpa/metadata.xml23
-rw-r--r--x11-libs/xpa/xpa-2.1.15.ebuild54
-rw-r--r--x11-libs/xpa/xpa-2.1.17.ebuild53
-rw-r--r--x11-libs/xpa/xpa-2.1.18.ebuild54
7 files changed, 389 insertions, 0 deletions
diff --git a/x11-libs/xpa/Manifest b/x11-libs/xpa/Manifest
new file mode 100644
index 000000000000..a3e70db1f723
--- /dev/null
+++ b/x11-libs/xpa/Manifest
@@ -0,0 +1,11 @@
+AUX xpa-2.1.18-makefile.patch 3382 SHA256 fbecba93f079427e1f95e2e3e726bd87f108915bf083d076d8bbcbb52b54adb2 SHA512 f13a64cd033fdd7a9bd087ad4edceb222f89b3d363cefaca38a710d08a9117754be95e5b1aea0bfcb145e31b232ab6600cd8a70aea98da3c6fe4ad5b6f9fb392 WHIRLPOOL 49c974f628b9a1b7e7ba6d529e4b1e5c66bf33f79604392567b2e84cd9acfc30f51dd931192a31e304902cae6efd4a486aa395878396f78d1426028ccfc79315
+AUX xpa-2.1.8-makefile.patch 2594 SHA256 24c4470674e4ada96f73461aef267e8fe02846b872c068cdd542e5c24890ee17 SHA512 e36e57ffb8ea86c3f646c4cdd7d3e8e304b6fe48f810cc4081a1dde2a367acfb70846160fef75cf020222002961963126e4c8b5a19f7d5cb5796cbee7429ec5e WHIRLPOOL 1eb4adec97afcc2993cd1f79e1093be326a508f2b90e3a0e73d6b7de8b31690e01dc0f126c6577b55c7fb6ee3c2a4a0b240950c72933a17b0c1b29f5975e47f3
+DIST xpa-2.1.15.tar.gz 861859 SHA256 ac0e041f9115757fbcbfeb377cb5833544815a70f2b46f6edfbf6d1239ae690a SHA512 62b453eb138197b452fca8d1ded1df97be54bcfbd13a0d5fecafc206c1589913c7d09593247077fb07c8b66a87ac0b22b95dfe74c49f2bd0abb942942fa87ce8 WHIRLPOOL 7dea8b931a1734c216ccfb79604ef5d291e1ea9230bbf0859895ac132ed2ceb7bc8ca13957d2022c34b641e740febf344b44e897faabf5aec9faf5761cf5213f
+DIST xpa-2.1.17.tar.gz 900465 SHA256 c95ae1d6c5353226a90f29007822e98da42a036af2f7326a21d2f66189c49751 SHA512 c9742b8427a9d8512a429f5a3b2bc6a55803b975c1524ead64906a4387a589f229e8715c46814b7b1bfb30a05f2f5fe59e944e1dabc333fcceca71c569a05a50 WHIRLPOOL 7426629091bc73d82ea87ce3db64b6f18f98f47bf98a45cc89971dbd0a88b44ee9eabe3e34e645e62a046fdb5b84258668f04616c38a34482f061e59b85445fb
+DIST xpa-2.1.18.tar.gz 900579 SHA256 a8c9055b913204babce2de4fa037bc3a5849941dcb888f57368fd04af0aa787b SHA512 4482325338ed15b70a1a934d8ba848712a4eed7546b4197fc89baa93dc80df1be29170a7350453f176d45264fae6f0474d136e487c0239d9e97dbd09dd8d0b19 WHIRLPOOL aa195e0121b3a5966932a796a3a67a5900b687f34507de4ac41c7d3cff37371497be0fffdc314be69a1dffa99cb9d17abd75a93659cce3b5a0d47ff9137c0802
+EBUILD xpa-2.1.15.ebuild 1269 SHA256 d55367706acc0fd7f206f8788e208d2e3ea2b27540c4dc83fca32fd4a8e574eb SHA512 d7c83f117056e0331d9d27ad76fbff444a56e83a44ac52633fe4b6aeda56814169d133a3f6a19a48856fa8298835402ab745b5962bf8a6df3db1ecb2f72933e2 WHIRLPOOL db14309b883fddb99633a0dabf4a9430da04156c0bc235f9b33e64558ea23af6ee9948a3942582252cc48ca90c91b12aabd1cd16a0ac7301806389ecc522c6ed
+EBUILD xpa-2.1.17.ebuild 1260 SHA256 052464442b8630b38da32600b72bca951bc53bb357b4588972be02f7b38594b5 SHA512 782df296c3dfb3b9b2c827af44f6096c3c3b55048297c1299410ad3b0eb4c2c8be0bf3e26aaa39eb3c8f1ee98ca531c591153b4afa1c30588f39134544d2b605 WHIRLPOOL 276345461f44fd7a33173bcc01ce9cdaecba31b2c27c20f4c269d78b6bc49452cfecd9f53fc7b1c258b4b1ba078c8ca57874095040ac4e1d5d7aea7dba9b4185
+EBUILD xpa-2.1.18.ebuild 1174 SHA256 7fd07906be23d7a550233a7f116c7c6f95651f8988d9b08ddbca092cc2fc3eda SHA512 984e00cccaaa108ad212f5c4589cc3f6075f89633c824fa3146838c70a661fdd467511a7d10ac9a19e9d780f1f4d1084b3d323c632a7925ad5cfe3a9a2264da5 WHIRLPOOL 63985ba7e0255683d3db38cbef275c915fb3118aff79aec0a1305bfad103fc69404652b73357167b1842e0a9249cd7709ec5c8c7344eddba8f341e5fd1afe522
+MISC ChangeLog 2603 SHA256 8baa068bb9b06d08e5f11669895fba467d267e800718348bce45c9dbb4625d07 SHA512 af20d60865e56ee8b0bc51cc8e938a5ae0d5002fdb3dbcfcb89f5b758f3ba5a2025e3942e7cc54c8ac67fe922cac5c245fd680d5e34fe26c805d4f3ed14fcb5a WHIRLPOOL ebacef89efe5a9ddcbb153acb252b14764147f6ce4a7d3724b465ee5b73273d6c68fa05879f97661478b5c822c7d8ed2ef19a474203675c213c2bf02a91ddd16
+MISC ChangeLog-2015 1876 SHA256 ae7516fd5fea8529f8ba398b10c11c45b4450ae01b530347ee4caaf99ff81128 SHA512 25058b6795d89763f2f3c325e51144b7a08b41fe1a8450a5b5cca68a5943e1825b9baafcb08673ea1102ff2d8adb304fe6d972b0e2941a6d3012b792bb9e85d5 WHIRLPOOL b1fff75a2d2bf62ead9ae3125c6f15c76557649d6af23a64fbbf26175710877f8c74c6c8f0dc7b60bfe0a1be33a5ef68a6918f4879919000e890d819d59ca425
+MISC metadata.xml 1072 SHA256 a05f2468b9d42608a0db5d854080cd23e0e797cbab2a84cb71250138eb8e2dbf SHA512 64769fd2b90a2dcdcc2de9cc97afae34fc4af8b3a2c7d62c80c17b2491e7a06cf26bcb99e28098e2dc199884f388f08ad1587a63da3c3c9edbfa1dcd1bea94f7 WHIRLPOOL 507c686ede278b3ca7891d05062aa5655c02af82d62d3279bf2a2ee8e203437d304c8e1fe9ef75f96b65eda17d31be64dfd8be4504e8cd2f2e5dccd26518a353
diff --git a/x11-libs/xpa/files/xpa-2.1.18-makefile.patch b/x11-libs/xpa/files/xpa-2.1.18-makefile.patch
new file mode 100644
index 000000000000..34aeed5b39dd
--- /dev/null
+++ b/x11-libs/xpa/files/xpa-2.1.18-makefile.patch
@@ -0,0 +1,110 @@
+--- a/Makefile.in 2016-12-19 19:21:28.566222982 +0000
++++ b/Makefile.in 2016-12-19 19:23:23.795246443 +0000
+@@ -28,6 +28,11 @@
+
+ prefix = @prefix@
+ exec_prefix = @exec_prefix@
++bindir = @bindir@
++libdir = @libdir@
++datadir = @datadir@
++mandir = @mandir@
++includedir = @includedir@
+
+ # The following definition can be set to non-null for special systems
+ # like AFS with replication. It allows the pathnames used for installation
+@@ -37,19 +42,19 @@
+ INSTALL_ROOT =
+
+ # Directory in which to install the .a or .so binary for the XPA library:
+-LIB_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/lib
++LIB_INSTALL_DIR = $(INSTALL_ROOT)$(libdir)
+
+ # Directory in which to install the program wish:
+-BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin
++BIN_INSTALL_DIR = $(INSTALL_ROOT)$(bindir)
+
+ # Directory in which to install the include file xpa.h:
+-INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include
++INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)
+
+ # Top-level directory for manual entries:
+-MAN_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/man
++MAN_INSTALL_DIR = $(INSTALL_ROOT)$(mandir)
+
+ # Top-level directory for share entries:
+-MAN_SHARE_DIR = $(INSTALL_ROOT)$(prefix)/share/xpa
++MAN_SHARE_DIR = $(INSTALL_ROOT)$(datadir)/xpa
+
+ # Platform-specific X compiler flags (include file specifications)
+ X_CFLAGS = @X_CFLAGS@
+@@ -177,7 +182,7 @@
+ $(RANLIB) $(LIB)
+
+ shlib: $(LIB)
+- @(rm -rf lib$(PACKAGE).tmp; mkdir lib$(PACKAGE).tmp; \
++ @(rm -rf lib$(PACKAGE).tmp; mkdir -p lib$(PACKAGE).tmp; \
+ (cd lib$(PACKAGE).tmp && ar x ../lib$(PACKAGE).a); \
+ rm -f lib$(PACKAGE).tmp/xt*.o; \
+ rm -f lib$(PACKAGE).tmp/tcl*.o; \
+@@ -193,7 +198,7 @@
+ -lwsock32
+
+ tclxpa: $(LIB)
+- @(rm -rf libtclxpa.tmp; mkdir libtclxpa.tmp; \
++ @(rm -rf libtclxpa.tmp; mkdir -p libtclxpa.tmp; \
+ (cd libtclxpa.tmp && ar x ../lib$(PACKAGE).a); \
+ rm -f libtclxpa.tmp/xt*.o; \
+ CC='$(CC)' CXX=$(CXX) \
+@@ -275,7 +280,7 @@
+ do \
+ if [ ! -d $$i ] ; then \
+ echo "Making directory $$i"; \
+- mkdir $$i; \
++ mkdir -p $$i; \
+ chmod 755 $$i; \
+ else true; \
+ fi; \
+@@ -297,7 +302,7 @@
+ install-man:
+ @if [ ! -d $(MAN_INSTALL_DIR) ] ; then \
+ echo "Making directory $(MAN_INSTALL_DIR)"; \
+- mkdir $(MAN_INSTALL_DIR); \
++ mkdir -p $(MAN_INSTALL_DIR); \
+ chmod 755 $(MAN_INSTALL_DIR); \
+ else true; \
+ fi;
+@@ -308,7 +313,7 @@
+ M="$(MAN_INSTALL_DIR)/man$$E"; \
+ if [ ! -d $$M ] ; then \
+ echo "Making directory $$M"; \
+- mkdir $$M; \
++ mkdir -p $$M; \
+ chmod 755 $$M; \
+ else true; \
+ fi; \
+@@ -462,7 +467,7 @@
+
+ dist: configure
+ ($(RM) -r $(DISTDIR); \
+- mkdir $(DISTDIR); \
++ mkdir -p $(DISTDIR); \
+ cp -p *.[ch] *.tcl $(DISTDIR)/.; \
+ cp -p pkgIndex.tcl $(DISTDIR)/.; \
+ cp -p Makefile.in $(DISTDIR)/.; \
+@@ -484,13 +489,13 @@
+ cp -p install-sh $(DISTDIR)/install-sh; \
+ chmod 755 $(DISTDIR)/install-sh; \
+ cp -p README INSTALL COPYING $(DISTDIR)/.; \
+- mkdir $(DISTDIR)/doc; \
++ mkdir -p $(DISTDIR)/doc; \
+ cp -p ./doc/*.html $(DISTDIR)/doc/.; \
+ cp -p ./doc/*.ps ./doc/*.pdf $(DISTDIR)/doc/.; \
+ cp -p ./doc/Makefile $(DISTDIR)/doc/.; \
+- mkdir $(DISTDIR)/doc/sman; \
++ mkdir -p $(DISTDIR)/doc/sman; \
+ cp -p ./doc/sman/* $(DISTDIR)/doc/sman/.; \
+- mkdir $(DISTDIR)/man; \
++ mkdir -p $(DISTDIR)/man; \
+ cp -p -R ./man/* $(DISTDIR)/man/.)
+
+ release: dist
diff --git a/x11-libs/xpa/files/xpa-2.1.8-makefile.patch b/x11-libs/xpa/files/xpa-2.1.8-makefile.patch
new file mode 100644
index 000000000000..290309662bb5
--- /dev/null
+++ b/x11-libs/xpa/files/xpa-2.1.8-makefile.patch
@@ -0,0 +1,84 @@
+--- Makefile.in.orig 2008-11-03 12:05:33.000000000 +0000
++++ Makefile.in 2008-11-03 12:07:48.000000000 +0000
+@@ -28,6 +28,11 @@
+
+ prefix = @prefix@
+ exec_prefix = @exec_prefix@
++bindir = @bindir@
++libdir = @libdir@
++datadir = @datadir@
++mandir = @mandir@
++includedir = @includedir@
+
+ # The following definition can be set to non-null for special systems
+ # like AFS with replication. It allows the pathnames used for installation
+@@ -37,19 +42,19 @@
+ INSTALL_ROOT =
+
+ # Directory in which to install the .a or .so binary for the XPA library:
+-LIB_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/lib
++LIB_INSTALL_DIR = $(INSTALL_ROOT)$(libdir)
+
+ # Directory in which to install the program wish:
+-BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin
++BIN_INSTALL_DIR = $(INSTALL_ROOT)$(bindir)
+
+ # Directory in which to install the include file xpa.h:
+-INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include
++INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)
+
+ # Top-level directory for manual entries:
+-MAN_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/man
++MAN_INSTALL_DIR = $(INSTALL_ROOT)$(mandir)
+
+ # Top-level directory for share entries:
+-MAN_SHARE_DIR = $(INSTALL_ROOT)$(prefix)/share/xpa
++MAN_SHARE_DIR = $(INSTALL_ROOT)$(datadir)/xpa
+
+ # Platform-specific X compiler flags (include file specifications)
+ X_CFLAGS = @X_CFLAGS@
+@@ -175,7 +180,7 @@
+ $(RANLIB) $(LIB)
+
+ shlib: $(LIB)
+- @(rm -rf lib$(PACKAGE).tmp; mkdir lib$(PACKAGE).tmp; \
++ @(rm -rf lib$(PACKAGE).tmp; mkdir -p lib$(PACKAGE).tmp; \
+ (cd lib$(PACKAGE).tmp && ar x ../lib$(PACKAGE).a); \
+ rm -f lib$(PACKAGE).tmp/xt*.o; \
+ rm -f lib$(PACKAGE).tmp/tcl*.o; \
+@@ -184,7 +189,7 @@
+ rm -rf lib$(PACKAGE).tmp)
+
+ tclxpa: $(LIB)
+- @(rm -rf libtclxpa.tmp; mkdir libtclxpa.tmp; \
++ @(rm -rf libtclxpa.tmp; mkdir -p libtclxpa.tmp; \
+ (cd libtclxpa.tmp && ar x ../lib$(PACKAGE).a); \
+ rm -f libtclxpa.tmp/xt*.o; \
+ CC='$(CC)' CXX=$(CXX) \
+@@ -259,7 +264,7 @@
+ do \
+ if [ ! -d $$i ] ; then \
+ echo "Making directory $$i"; \
+- mkdir $$i; \
++ mkdir -p $$i; \
+ chmod 755 $$i; \
+ else true; \
+ fi; \
+@@ -281,7 +286,7 @@
+ install-man:
+ @if [ ! -d $(MAN_INSTALL_DIR) ] ; then \
+ echo "Making directory $(MAN_INSTALL_DIR)"; \
+- mkdir $(MAN_INSTALL_DIR); \
++ mkdir -p $(MAN_INSTALL_DIR); \
+ chmod 755 $(MAN_INSTALL_DIR); \
+ else true; \
+ fi;
+@@ -292,7 +297,7 @@
+ M="$(MAN_INSTALL_DIR)/man$$E"; \
+ if [ ! -d $$M ] ; then \
+ echo "Making directory $$M"; \
+- mkdir $$M; \
++ mkdir -p $$M; \
+ chmod 755 $$M; \
+ else true; \
+ fi; \
diff --git a/x11-libs/xpa/metadata.xml b/x11-libs/xpa/metadata.xml
new file mode 100644
index 000000000000..bb77c4ecb722
--- /dev/null
+++ b/x11-libs/xpa/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-astronomy@gentoo.org</email>
+ <name>Gentoo Astronomy Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ The XPA messaging system provides seamless communication between many
+ kinds of Unix programs, including X programs and Tcl/Tk programs.
+ It also provides an easy way for users to communicate with these
+ XPA-enabled programs by executing XPA client commands in the shell or
+ by utilizing such commands in scripts. Because XPA works both at the
+ programming level and the shell level, it is a powerful tool for
+ unifying any analysis environment: users and programmers have great
+ flexibility in choosing the best level or levels at which to access
+ XPA services, and client access can be extended or modified easily
+ at any time.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">ericmandel/xpa</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/x11-libs/xpa/xpa-2.1.15.ebuild b/x11-libs/xpa/xpa-2.1.15.ebuild
new file mode 100644
index 000000000000..c5f4c09f108e
--- /dev/null
+++ b/x11-libs/xpa/xpa-2.1.15.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 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="http://hea-www.harvard.edu/RD/xpa/"
+SRC_URI="http://hea-www.harvard.edu/saord/download/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc static-libs"
+
+RDEPEND="
+ dev-lang/tcl:0=
+ x11-libs/libXt
+ !<sci-astronomy/ds9-5.3"
+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
+}
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
+}
diff --git a/x11-libs/xpa/xpa-2.1.18.ebuild b/x11-libs/xpa/xpa-2.1.18.ebuild
new file mode 100644
index 000000000000..45e6b4b73df2
--- /dev/null
+++ b/x11-libs/xpa/xpa-2.1.18.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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}"
+
+PATCHES=( "${FILESDIR}"/${PN}-2.1.18-makefile.patch )
+
+src_prepare() {
+ default
+ sed -e "s:\${LINK}:\${LINK} ${LDFLAGS}:" \
+ -i 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 && dodoc doc/*.html
+ use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*.a
+}