diff options
| author | Alfredo Tupone <tupone@gentoo.org> | 2023-03-11 23:08:22 +0100 |
|---|---|---|
| committer | Alfredo Tupone <tupone@gentoo.org> | 2023-03-11 23:08:22 +0100 |
| commit | 66fbaa91e2107d91e918a3d6c95470d59aed7eca (patch) | |
| tree | 24f9f03404f23159122a05ea7720bd63925c3bd8 /dev-tcltk/tclx/tclx-8.4.4-r2.ebuild | |
| parent | 7d2182f227a29fae19446e83876be525dd696732 (diff) | |
| download | gentoo-66fbaa91e2107d91e918a3d6c95470d59aed7eca.tar.gz gentoo-66fbaa91e2107d91e918a3d6c95470d59aed7eca.tar.bz2 gentoo-66fbaa91e2107d91e918a3d6c95470d59aed7eca.zip | |
dev-tcltk/tclx: autoreconf & stat64 good for configure
Closes: https://bugs.gentoo.org/900463
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-tcltk/tclx/tclx-8.4.4-r2.ebuild')
| -rw-r--r-- | dev-tcltk/tclx/tclx-8.4.4-r2.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-tcltk/tclx/tclx-8.4.4-r2.ebuild b/dev-tcltk/tclx/tclx-8.4.4-r2.ebuild new file mode 100644 index 000000000000..38ea1746b9a3 --- /dev/null +++ b/dev-tcltk/tclx/tclx-8.4.4-r2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="A set of extensions to TCL" +HOMEPAGE="http://tclx.sourceforge.net" +SRC_URI="https://github.com/flightaware/${PN}/archive/v${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux" +IUSE="threads" + +DEPEND="dev-lang/tcl:0=" +RDEPEND="${DEPEND}" + +# tests broken, bug #279283 +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/${PN}-8.4-varinit.patch + "${FILESDIR}"/${PN}-8.4-ldflags.patch + "${FILESDIR}"/${P}-configure-clang16.patch + "${FILESDIR}"/${P}-configure-clang16-deux.patch +) + +QA_CONFIG_IMPL_DECL_SKIP=( + stat64 # used to test for Large File Support +) + +src_prepare() { + sed \ + -e '/CC=/s:-pipe::g' \ + -i tclconfig/tcl.m4 configure || die + default + eautoreconf +} + +src_configure() { + econf \ + $(use_enable threads) \ + --enable-shared \ + --with-tcl="${EPREFIX}/usr/$(get_libdir)/" + + # adjust install_name on darwin + if [[ ${CHOST} == *-darwin* ]]; then + sed -i \ + -e 's:^\(SHLIB_LD\W.*\)$:\1 -install_name ${pkglibdir}/$@:' \ + "${S}"/Makefile || die 'sed failed' + fi +} + +src_install() { + default + doman doc/*.[n3] +} |
