blob: c9a42452ace447f8cba8330d899f7fde1493ae81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/amazonmp3-libcompat/amazonmp3-libcompat-0.1.ebuild,v 1.3 2009/03/25 10:00:51 remi Exp $
EAPI="1"
inherit multilib eutils
BOOST_VERSION="1.34.1-7.fc8.i386"
DESCRIPTION="Support dependencies for net-misc/amazonmp3"
HOMEPAGE="http://gentoo.org/proj/en/desktop"
SRC_URI="mirror://gentoo/amazonmp3-boost-${BOOST_VERSION}.tar.bz2
amd64? ( mirror://gentoo/${P}.tar.bz2 )"
RESTRICT="strip"
LICENSE="GPL-2"
SLOT="0"
# There are still problems with amd64 support, research on-going.
KEYWORDS="~x86 -amd64 -*"
IUSE=""
DEPEND=""
RDEPEND="x86? (
dev-cpp/gtkmm:2.4
net-misc/curl
dev-libs/openssl
)
amd64? (
app-emulation/emul-linux-x86-gtklibs
)"
S="${WORKDIR}/amazonmp3-boost-${BOOST_VERSION}"
pkg_setup() {
# 32-bit binary libs
has_multilib_profile && ABI="x86"
}
src_install() {
local OPTDIR="/opt/${PN}"
exeinto "${OPTDIR}"
# The amazonmp3 binary, compiled for Fedora 8, needs boost-1.34, so we provide a
# set of the libs, ripped right out of their boost-1.34.1-7.fc8.i386.rpm
doexe *
if use amd64; then
# gtkmm (and its deps) and libcurl are not yet available in any
# emul-linux-x86 packages, so we rolled our own, based partially on FC8
# gtkmm rpms.
# TODO: Fix libcurl problems.
pushd "${WORKDIR}/${P}"
doexe *
popd
fi
# They also need some local libraries named a bit funny:
# TODO: Maybe put a copy of these in /opt/amazonmp3-libcompat?
dosym "libcrypto.so" "/usr/$(get_libdir)/libcrypto.so.6"
dosym "libssl.so" "/usr/$(get_libdir)/libssl.so.6"
echo "LDPATH=\"${OPTDIR}\"" > 99amazonmp3-libcompat
doenvd 99amazonmp3-libcompat
}
|