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 /dev-tcltk/itk/itk-3.4.1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-tcltk/itk/itk-3.4.1.ebuild')
-rw-r--r-- | dev-tcltk/itk/itk-3.4.1.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-tcltk/itk/itk-3.4.1.ebuild b/dev-tcltk/itk/itk-3.4.1.ebuild new file mode 100644 index 000000000000..c3275997968b --- /dev/null +++ b/dev-tcltk/itk/itk-3.4.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools eutils multilib versionator virtualx + +MY_PV=${PV/_beta/b} +ITCL_VERSION="$(get_version_component_range 1-2)" + +DESCRIPTION="Object Oriented Enhancements for Tcl/Tk" +HOMEPAGE="http://incrtcl.sourceforge.net/" +SRC_URI="mirror://sourceforge/project/incrtcl/%5BIncr%20Tcl_Tk%5D-source/${PV}/${PN}${PV}.tar.gz" + +IUSE="" +SLOT="0" +LICENSE="BSD" +KEYWORDS="alpha amd64 ia64 ppc sparc x86 ~amd64-linux ~x86-linux" + +DEPEND=" + <dev-lang/tk-8.6:= + =dev-tcltk/itcl-3.4*" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}$(get_version_component_range 1-2)" + +src_prepare() { + #epatch "${FILESDIR}"/${P}-install_data.patch + mv configure.{in,ac} || die + AT_M4DIR=.. eautoconf + sed 's:-pipe::g' -i configure || die +} + +src_configure() { + source "${EPREFIX}"/usr/$(get_libdir)/itclConfig.sh || die + econf \ + --with-tcl="${EPREFIX}"/usr/$(get_libdir) \ + --with-tk="${EPREFIX}"/usr/$(get_libdir) \ + --with-tclinclude="${EPREFIX}"/usr/include \ + --with-tkinclude="${EPREFIX}"/usr/include \ + --with-x +} + +src_compile() { + emake CFLAGS_DEFAULT="${CFLAGS}" +} + +src_test() { + Xemake test +} + +src_install() { + default + + cat >> "${T}"/34${PN} <<- EOF + LDPATH="${EPREFIX}/usr/$(get_libdir)/${PN}${MY_PV}/" + EOF + doenvd "${T}"/34${PN} +} |