diff options
author | Daniel Pielmeier <billie@gentoo.org> | 2015-09-02 19:42:24 +0200 |
---|---|---|
committer | Daniel Pielmeier <billie@gentoo.org> | 2015-09-02 19:45:07 +0200 |
commit | 20b700544307add1e424c9e6c9ca7ca8aee7f15b (patch) | |
tree | 78154554d858cea3d3d21129d97263fe2477dc54 /sys-libs/libtermcap-compat | |
parent | net-misc/owncloud-client: version bump, single minor theme fix (diff) | |
download | gentoo-20b700544307add1e424c9e6c9ca7ca8aee7f15b.tar.gz gentoo-20b700544307add1e424c9e6c9ca7ca8aee7f15b.tar.bz2 gentoo-20b700544307add1e424c9e6c9ca7ca8aee7f15b.zip |
sys-libs/libtermcap-compat: Add multilib support
Fixes bug 551360. Thanks to Jonathan Callen for cleaning up the patch.
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'sys-libs/libtermcap-compat')
-rw-r--r-- | sys-libs/libtermcap-compat/libtermcap-compat-2.0.8-r4.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/sys-libs/libtermcap-compat/libtermcap-compat-2.0.8-r4.ebuild b/sys-libs/libtermcap-compat/libtermcap-compat-2.0.8-r4.ebuild new file mode 100644 index 000000000000..233d1f8de31a --- /dev/null +++ b/sys-libs/libtermcap-compat/libtermcap-compat-2.0.8-r4.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# we only want this for binary-only packages, so we will only be installing +# the lib used at runtime; no headers and no files to link against + +EAPI="5" + +inherit eutils multilib toolchain-funcs multilib-minimal + +PATCHVER="2" + +MY_P="termcap-${PV}" +DESCRIPTION="Compatibility package for old termcap-based programs" +HOMEPAGE="http://www.catb.org/~esr/terminfo/" +SRC_URI="http://www.catb.org/~esr/terminfo/termtypes.tc.gz + mirror://gentoo/${MY_P}.tar.bz2 + mirror://gentoo/${MY_P}-patches-${PATCHVER}.tar.bz2" + +LICENSE="GPL-2 LGPL-2 BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~sparc ~x86" +IUSE="" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + EPATCH_SOURCE="${WORKDIR}/patch" + EPATCH_SUFFIX="patch" + epatch "${EPATCH_SOURCE}" + + cd "${WORKDIR}" + mv termtypes.tc termcap || die + epatch "${EPATCH_SOURCE}"/tc.file + + multilib_copy_sources +} + +src_configure() { + tc-export CC +} + +multilib_src_install() { + dolib.so libtermcap.so.${PV} + dosym libtermcap.so.${PV} /usr/$(get_libdir)/libtermcap.so.2 +} + +multilib_src_install_all() { + insinto /etc + doins "${WORKDIR}"/termcap + + dodoc ChangeLog README +} |