+++ /dev/null
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="3"
-
-inherit eutils flag-o-matic multilib toolchain-funcs
-
-MY_V_SUFFIX="-8.5.2"
-
-DESCRIPTION="Extension to Tk, adding new widgets, geometry managers, and misc commands"
-HOMEPAGE="
- http://blt.sourceforge.net/
- http://jos.decoster.googlepages.com/bltfortk8.5.2"
-SRC_URI="
- https://dev.gentoo.org/~jlec/distfiles/${PN}${PV}${MY_V_SUFFIX}.tar.gz
- http://jos.decoster.googlepages.com/${PN}${PV}${MY_V_SUFFIX}.tar.gz"
-
-IUSE="jpeg static-libs X"
-SLOT="0"
-LICENSE="BSD"
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-
-DEPEND="
- dev-lang/tk
- jpeg? ( virtual/jpeg )
- X? ( x11-libs/libX11 )"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/${PN}${PV}${MY_V_SUFFIX}"
-
-src_prepare() {
- epatch "${FILESDIR}/blt-2.4z-r4-fix-makefile.patch"
- epatch "${FILESDIR}/blt-2.4z-r4-fix-makefile2.patch"
- # From blt-2.4z-6mdk.src.rpm
- epatch "${FILESDIR}"/blt2.4z-64bit.patch
-
- #epatch "${FILESDIR}"/blt-2.4z-tcl8.5-fix.patch
- epatch "${FILESDIR}"/blt-2.4z-tcl8.5-fixpkgruntime.patch
-
- epatch "${FILESDIR}"/${P}-ldflags.patch
-
- # Set the correct libdir and drop RPATH
- sed \
- -e "s:\(^libdir=\${exec_prefix}/\)lib:\1$(get_libdir):" \
- -e 's:LD_RUN_PATH=.*$:LD_RUN_PATH="":g' \
- -e "/RANLIB/s:ranlib:$(tc-getRANLIB):g" \
- -i configure* || die "sed configure* failed"
- sed \
- -e "/^scriptdir =/s:lib:$(get_libdir):" \
- -i Makefile.in demos/Makefile.in || die "sed Makefile.in failed"
-
- sed \
- -e "/AR/s:ar:$(tc-getAR):g" \
- -i src/Makefile.in || die
-
- epatch "${FILESDIR}"/${P}-linking.patch
- epatch "${FILESDIR}"/${P}-darwin.patch
- epatch "${FILESDIR}"/${P}-gbsd.patch
-}
-
-src_configure() {
- # bug 167934
- append-flags -fPIC
-
- LC_ALL=C \
- econf \
- --x-includes="${EPREFIX}/usr/include" \
- --x-libraries="${EPREFIX}/usr/$(get_libdir)" \
- --with-blt="${EPREFIX}/usr/$(get_libdir)" \
- --with-tcl="${EPREFIX}/usr/$(get_libdir)" \
- --with-tk="${EPREFIX}/usr/$(get_libdir)" \
- --with-tclincls="${EPREFIX}/usr/include" \
- --with-tkincls="${EPREFIX}/usr/include" \
- --with-tcllibs="${EPREFIX}/usr/$(get_libdir)" \
- --with-tklibs="${EPREFIX}/usr/$(get_libdir)" \
- --with-cc="$(tc-getCC)" \
- --with-cflags="${CFLAGS}" \
- --with-gnu-ld \
- $(use_enable jpeg) \
- $(use_with X x)
-}
-
-src_compile() {
- # parallel borks
- emake -j1 LDFLAGS="${LDFLAGS}" || die "emake failed"
-}
-
-src_install() {
- sed \
- -e "s:\.\./src/bltwish:${EPREFIX}/usr/bin/bltwish:g" \
- -e "s:\.\./bltwish:${EPREFIX}/usr/bin/bltwish:g" \
- -e "s:/usr/local/bin/bltwish:${EPREFIX}/usr/bin/bltwish:g" \
- -e "s:/usr/local/bin/tclsh:${EPREFIX}/usr/bin/tclsh:g" \
- -i demos/{,scripts/}*.tcl || die
-
- dodir /usr/bin \
- /usr/$(get_libdir)/blt2.4/demos/bitmaps \
- /usr/share/man/mann \
- /usr/include \
- || die "dodir failed"
- emake -j1 INSTALL_ROOT="${D}" install || die "make install failed"
-
- dodoc NEWS PROBLEMS README
- dohtml html/*.html
- for f in `ls "${ED}"/usr/share/man/mann` ; do
- mv "${ED}"/usr/share/man/mann/${f} "${ED}"/usr/share/man/mann/${f/.n/.nblt}
- done
-
- # bug 259338 - dev-tcltk/blt-2.4z-r4 provides empty pkgIndex.tcl
- cp "${FILESDIR}"/pkgIndex.tcl "${ED}"/usr/$(get_libdir)/blt2.4/pkgIndex.tcl
-
- # fix for linking against shared lib with -lBLT or -lBLTlite
- dosym libBLT24$(get_libname) /usr/$(get_libdir)/libBLT$(get_libname) || die
- dosym libBLTlite24$(get_libname) /usr/$(get_libdir)/libBLTlite$(get_libname) || die
-
- use static-libs || \
- find "${ED}"/usr/$(get_libdir) -name "*.a" -print0 | \
- xargs -r -0 rm -fv
-}
+++ /dev/null
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit eutils flag-o-matic multilib toolchain-funcs
-
-MY_V_SUFFIX="-8.5.2"
-
-DESCRIPTION="Extension to Tk, adding new widgets, geometry managers, and misc commands"
-HOMEPAGE="
- http://blt.sourceforge.net/
- http://jos.decoster.googlepages.com/bltfortk8.5.2"
-SRC_URI="
- https://dev.gentoo.org/~jlec/distfiles/${PN}${PV}${MY_V_SUFFIX}.tar.gz
- http://jos.decoster.googlepages.com/${PN}${PV}${MY_V_SUFFIX}.tar.gz"
-
-IUSE="jpeg static-libs X"
-SLOT="0"
-LICENSE="BSD"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-
-DEPEND="
- dev-lang/tk
- jpeg? ( virtual/jpeg )
- X? ( x11-libs/libX11 )"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/${PN}${PV}${MY_V_SUFFIX}"
-
-MAKEOPTS+=" -j1"
-
-src_prepare() {
- epatch "${FILESDIR}/blt-2.4z-r4-fix-makefile.patch"
- epatch "${FILESDIR}/blt-2.4z-r4-fix-makefile2.patch"
- # From blt-2.4z-6mdk.src.rpm
- epatch "${FILESDIR}"/blt2.4z-64bit.patch
-
- #epatch "${FILESDIR}"/blt-2.4z-tcl8.5-fix.patch
- epatch "${FILESDIR}"/blt-2.4z-tcl8.5-fixpkgruntime.patch
-
- epatch "${FILESDIR}"/${P}-ldflags.patch
-
- # Set the correct libdir and drop RPATH
- sed \
- -e "s:\(^libdir=\${exec_prefix}/\)lib:\1$(get_libdir):" \
- -e 's:LD_RUN_PATH=.*$:LD_RUN_PATH="":g' \
- -e "/RANLIB/s:ranlib:$(tc-getRANLIB):g" \
- -i configure* || die "sed configure* failed"
- sed \
- -e "/^scriptdir =/s:lib:$(get_libdir):" \
- -i Makefile.in demos/Makefile.in || die "sed Makefile.in failed"
-
- sed \
- -e "/AR/s:ar:$(tc-getAR):g" \
- -i src/Makefile.in || die
-
- epatch \
- "${FILESDIR}"/${P}-linking.patch \
- "${FILESDIR}"/${P}-darwin.patch \
- "${FILESDIR}"/${P}-gbsd.patch \
- "${FILESDIR}"/${P}-tk8.6.patch
-
- append-cflags -DUSE_INTERP_RESULT -fPIC
-}
-
-src_configure() {
- LC_ALL=C \
- econf \
- --x-includes="${EPREFIX}/usr/include" \
- --x-libraries="${EPREFIX}/usr/$(get_libdir)" \
- --with-blt="${EPREFIX}/usr/$(get_libdir)" \
- --with-tcl="${EPREFIX}/usr/$(get_libdir)" \
- --with-tk="${EPREFIX}/usr/$(get_libdir)" \
- --with-tclincls="${EPREFIX}/usr/include" \
- --with-tkincls="${EPREFIX}/usr/include" \
- --with-tcllibs="${EPREFIX}/usr/$(get_libdir)" \
- --with-tklibs="${EPREFIX}/usr/$(get_libdir)" \
- --with-cc="$(tc-getCC)" \
- --with-cflags="${CFLAGS}" \
- --with-gnu-ld \
- $(use_enable jpeg) \
- $(use_with X x)
-}
-
-src_compile() {
- # parallel borks
- emake LDFLAGS="${LDFLAGS}"
-}
-
-src_install() {
- sed \
- -e "s:\.\./src/bltwish:${EPREFIX}/usr/bin/bltwish:g" \
- -e "s:\.\./bltwish:${EPREFIX}/usr/bin/bltwish:g" \
- -e "s:/usr/local/bin/bltwish:${EPREFIX}/usr/bin/bltwish:g" \
- -e "s:/usr/local/bin/tclsh:${EPREFIX}/usr/bin/tclsh:g" \
- -i demos/{,scripts/}*.tcl || die
-
- dodir /usr/bin \
- /usr/$(get_libdir)/blt2.4/demos/bitmaps \
- /usr/share/man/mann \
- /usr/include
-
- emake INSTALL_ROOT="${D}" install || die "make install failed"
-
- dodoc NEWS PROBLEMS README
- dohtml html/*.html
- for f in `ls "${ED}"/usr/share/man/mann` ; do
- mv "${ED}"/usr/share/man/mann/${f} "${ED}"/usr/share/man/mann/${f/.n/.nblt}
- done
-
- # bug 259338 - dev-tcltk/blt-2.4z-r4 provides empty pkgIndex.tcl
- cp "${FILESDIR}"/pkgIndex.tcl "${ED}"/usr/$(get_libdir)/blt2.4/pkgIndex.tcl
-
- # fix for linking against shared lib with -lBLT or -lBLTlite
- dosym libBLT24$(get_libname) /usr/$(get_libdir)/libBLT$(get_libname)
- dosym libBLTlite24$(get_libname) /usr/$(get_libdir)/libBLTlite$(get_libname)
-
- use static-libs || \
- find "${ED}"/usr/$(get_libdir) -name "*.a" -print0 | \
- xargs -r -0 rm -fv
-}
+++ /dev/null
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit autotools eutils flag-o-matic multilib toolchain-funcs
-
-MY_V_SUFFIX="-8.5.2"
-
-DESCRIPTION="Extension to Tk, adding new widgets, geometry managers, and misc commands"
-HOMEPAGE="
- http://blt.sourceforge.net/
- http://jos.decoster.googlepages.com/bltfortk8.5.2"
-SRC_URI="
- https://dev.gentoo.org/~jlec/distfiles/${PN}${PV}${MY_V_SUFFIX}.tar.gz
- http://jos.decoster.googlepages.com/${PN}${PV}${MY_V_SUFFIX}.tar.gz"
-
-IUSE="jpeg static-libs X"
-SLOT="0"
-LICENSE="BSD"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-
-DEPEND="
- dev-lang/tk
- jpeg? ( virtual/jpeg )
- X? ( x11-libs/libX11 )"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/${PN}${PV}${MY_V_SUFFIX}"
-
-MAKEOPTS+=" -j1"
-
-src_prepare() {
- epatch "${FILESDIR}/blt-2.4z-r4-fix-makefile.patch"
- epatch "${FILESDIR}/blt-2.4z-r4-fix-makefile2.patch"
- # From blt-2.4z-6mdk.src.rpm
- epatch "${FILESDIR}"/blt2.4z-64bit.patch
-
- #epatch "${FILESDIR}"/blt-2.4z-tcl8.5-fix.patch
- epatch "${FILESDIR}"/blt-2.4z-tcl8.5-fixpkgruntime.patch
-
- epatch "${FILESDIR}"/${P}-ldflags.patch
-
- # Set the correct libdir and drop RPATH
- sed \
- -e "s:\(^libdir=\${exec_prefix}/\)lib:\1$(get_libdir):" \
- -e 's:LD_RUN_PATH=.*$:LD_RUN_PATH="":g' \
- -e "/RANLIB/s:ranlib:$(tc-getRANLIB):g" \
- -i configure* || die "sed configure* failed"
- sed \
- -e "/^scriptdir =/s:lib:$(get_libdir):" \
- -i Makefile.in demos/Makefile.in || die "sed Makefile.in failed"
-
- sed \
- -e "/AR/s:ar:$(tc-getAR):g" \
- -i src/Makefile.in || die
-
- epatch \
- "${FILESDIR}"/${P}-linking.patch \
- "${FILESDIR}"/${P}-darwin.patch \
- "${FILESDIR}"/${P}-gbsd.patch \
- "${FILESDIR}"/${P}-tk8.6.patch \
- "${FILESDIR}"/${P}-tcl8.6.patch \
- "${FILESDIR}"/${P}-aclocal.patch
-
- append-cflags -fPIC
-
- eautoreconf
-}
-
-src_configure() {
- LC_ALL=C \
- econf \
- --x-includes="${EPREFIX}/usr/include" \
- --x-libraries="${EPREFIX}/usr/$(get_libdir)" \
- --with-blt="${EPREFIX}/usr/$(get_libdir)" \
- --with-tcl="${EPREFIX}/usr/$(get_libdir)" \
- --with-tk="${EPREFIX}/usr/$(get_libdir)" \
- --with-tclincls="${EPREFIX}/usr/include" \
- --with-tkincls="${EPREFIX}/usr/include" \
- --with-tcllibs="${EPREFIX}/usr/$(get_libdir)" \
- --with-tklibs="${EPREFIX}/usr/$(get_libdir)" \
- --with-cc="$(tc-getCC)" \
- --with-cflags="${CFLAGS}" \
- --with-gnu-ld \
- $(use_enable jpeg) \
- $(use_with X x)
-}
-
-src_compile() {
- # parallel borks
- emake LDFLAGS="${LDFLAGS}"
-}
-
-src_install() {
- sed \
- -e "s:\.\./src/bltwish:${EPREFIX}/usr/bin/bltwish:g" \
- -e "s:\.\./bltwish:${EPREFIX}/usr/bin/bltwish:g" \
- -e "s:/usr/local/bin/bltwish:${EPREFIX}/usr/bin/bltwish:g" \
- -e "s:/usr/local/bin/tclsh:${EPREFIX}/usr/bin/tclsh:g" \
- -i demos/{,scripts/}*.tcl || die
-
- dodir /usr/bin \
- /usr/$(get_libdir)/blt2.4/demos/bitmaps \
- /usr/share/man/mann \
- /usr/include
-
- emake INSTALL_ROOT="${D}" install || die "make install failed"
-
- dodoc NEWS PROBLEMS README
- dohtml html/*.html
- for f in `ls "${ED}"/usr/share/man/mann` ; do
- mv "${ED}"/usr/share/man/mann/${f} "${ED}"/usr/share/man/mann/${f/.n/.nblt}
- done
-
- # bug 259338 - dev-tcltk/blt-2.4z-r4 provides empty pkgIndex.tcl
- cp "${FILESDIR}"/pkgIndex.tcl "${ED}"/usr/$(get_libdir)/blt2.4/pkgIndex.tcl
-
- # fix for linking against shared lib with -lBLT or -lBLTlite
- dosym libBLT24$(get_libname) /usr/$(get_libdir)/libBLT$(get_libname)
- dosym libBLTlite24$(get_libname) /usr/$(get_libdir)/libBLTlite$(get_libname)
-
- use static-libs || \
- find "${ED}"/usr/$(get_libdir) -name "*.a" -print0 | \
- xargs -r -0 rm -fv
-}
+++ /dev/null
-Source: mescalinum
-Upstream: N/A
-Reason: fix broken $DESTDIR support in library/Makefile
---- library/Makefile.in.orig 2008-10-26 14:30:28.000000000 +0100
-+++ library/Makefile.in 2008-10-26 14:31:40.000000000 +0100
-@@ -45,7 +45,7 @@ all: pkgIndex
-
- pkgIndex:
- rm -f pkgIndex.tcl
-- sed -e 's/%VERSION%/$(version)/' $(srcdir)/pkgIndex.tcl.in | \
-+ sed -e 's/%VERSION%/$(version)/' $(INSTALL_ROOT)$(srcdir)/pkgIndex.tcl.in | \
- sed -e 's/%LIB_PREFIX%/$(lib_prefix)/' | \
- sed -e 's;%LIB_DIR%;$(libdir);' > pkgIndex.tcl
-
-@@ -58,7 +58,7 @@ install: mkdirs pkgIndex
- for i in $(miscFiles) ; do \
- $(INSTALL_DATA) $(srcdir)/$$i $(INSTALL_ROOT)$(scriptdir) ; \
- done
-- $(INSTALL_DATA) pkgIndex.tcl $(scriptdir)
-+ $(INSTALL_DATA) pkgIndex.tcl $(INSTALL_ROOT)$(scriptdir)
-
- mkdirs:
- @for i in $(instdirs) ; do \