Updated vice ebuild

This commit is contained in:
layman 2018-01-01 20:01:24 +01:00
parent 9409bc4498
commit 6b9a0c5d16
2 changed files with 174 additions and 0 deletions

View File

@ -1,5 +1,7 @@
AUX vice-2.4.27-autotools.patch 353 SHA256 5d9232698424a6c98ed27e3206fb46a12093666e42dd6a59b21fd362923e9511 SHA512 10ba3f9f9c0e69f34ea3ab361b198826b7055586e2dade320a60c1a1e429797d2eaf1554b1e9fde63f8ddb23bd4a9b8fb24d3f9692433b6b6d043d09761924d3 WHIRLPOOL cad09cca9eb43298168ff4c8f3c5acd52e56aeee1a3db63f91906c5f4dc440f230d3e2e68c039759fbea0e5d7bb54adec58c2c14fe4be41a75e69c1a0fe35ab6
AUX vice-2.4.27-ffmpeg3.patch 2537 SHA256 d42963d9051096c59ecdffbf5fb52c43fff13e0f749925bb6189a105cd1344ac SHA512 7d1933038fd34fe598bccfb3762777dac7b4dad4cdea44cf27e4a124c7a7917580069fb0fe950f81c5aa00157f0ac3f84dba7fea60f46f7a52f7b6e917b2e050 WHIRLPOOL d3f611fe58116ecc57cd89f771b17bece1e7d91261fa416657aefd550ecade1a05a68502d670f66ccd9b74f200b6c6512a9ef5c489e153767e6084e0cdfa5c8a
DIST vice-2.4.27.tar.gz 25561665 SHA256 ce8b8649308b38f5245490c9df13230d075d3e571b538807d4ca8dd1d53e0b47 SHA512 589b9892f3180db6f169e74b863171f08567045862f2f47cac73ef946e81d55dcde5373fc910cfd1659238669f12ee6ad934c7143c87fad736cda77479439bec WHIRLPOOL 44633477e9ec5bf6b950efa6743647304770a44d58c624b623c992d09735446c79185ca410af60768554b62c0db4675e99c9db1a25c49b3b861860d00a298406
DIST vice-3.1.tar.gz 30714226 SHA256 3eb8159633816095006dec36c5c3edd055a87fd8bda193a1194a6801685d1240 SHA512 bc02a3597a17dadb37c487e6942192c0e9dc1a7d4e440fbf0dc8a165dbb2dee60ddf157697a020d2780ddef56a0a67802768d5c6d117b9cf5cdc124de45bc579 WHIRLPOOL ff5f8591b3c9b66b739fc7403606d3a30a3b87740826ea5e05d518eedcde83fe5ff78fdb4ad606ad6eefe1c2419f3e6141b5a4c792c5b9082209f7a8f68053dc
EBUILD vice-2.4.27-r3.ebuild 4198 SHA256 8c29d3707d75c60a8ddf05c55ae245121953b770d6dbb112bc95b329cca1d61e SHA512 9cf915b527228e832ac2be037441468fb0bb437667f064de763b9976f6db2793608080828252c4dcf0d1973becc9c172fd6663e41f2caf827d0c07c661a3b155 WHIRLPOOL ee9420c312b0a9fcebeb459bb8cf66635e7a7f17d399e13e0d005f1921671dd6cdad8eba871bb3579894d6b61e8da347d066cf07d9a9af7f364d43572c834b31
EBUILD vice-3.1.ebuild 4046 SHA256 c722725793d396d9d183ab964848a793b223bcf902773f624eb6a1276b48e8c7 SHA512 b5f2a530ba6edbed6f9cc710041405e89248a6611b152de27e29bf76e30bdb84bafc5fbdacd221366bf7b45ff361a0dcc5ba9e1c99c3fb81fe3b97e60f3090e9 WHIRLPOOL 91c1ff8b43bbbbe77d65f70499caef85e593772824fb6143ea243716fc33c84e595fa58268f9cb3acc4c394fd2ad1118903073b6324e05a7d4a880344dee377e
MISC metadata.xml 646 SHA256 44d02a16c320326481162dd62b212494bb0083198dd7f5999498bcd519f0ec04 SHA512 1d641f0e1ba5962aa7b9e230c20ade01595aed9f853be25ec4d5022aff22cbd75414a41fbf64427bf5a27485057ee3e767521561f396a5bf70ffa3e1da31739f WHIRLPOOL 64a43a1df92e8a1be6c0b16a61b5ddf3ad4f0f60e0f1f68bde92785a9369b9b2957ac4b9234736cbed8743d57804af6ce082ed66709d327f99dbacb4fe24039b

View File

@ -0,0 +1,172 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools eutils toolchain-funcs flag-o-matic
DESCRIPTION="The Versatile Commodore 8-bit Emulator"
HOMEPAGE="http://vice-emu.sourceforge.net/"
SRC_URI="mirror://sourceforge/vice-emu/releases/${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="Xaw3d alsa ethernet ffmpeg fullscreen gtk +gtk3 ipv6 lame nls oss png pulseaudio sdl +sdlsound threads vte zlib"
# upstream says gtk3 and sdl2 shouldn't be exposed yet.
REQUIRED_USE="?? ( gtk gtk3 sdl )"
#REQUIRED_USE="?? ( gtk sdl )"
GTK_COMMON="
x11-libs/pango
x11-libs/cairo
gtk3? (
x11-libs/gtk+:3
vte? ( x11-libs/vte:2.90 )
${GTK_COMMON}
)"
RDEPEND="
virtual/jpeg:0
virtual/opengl
media-libs/giflib
alsa? ( media-libs/alsa-lib )
pulseaudio? ( media-sound/pulseaudio )
sdlsound? ( media-libs/libsdl[sound] )
ethernet? (
>=net-libs/libpcap-0.9.8
>=net-libs/libnet-1.1.2.1:1.1
)
ffmpeg? ( virtual/ffmpeg )
lame? ( media-sound/lame )
nls? ( virtual/libintl )
png? ( media-libs/libpng:0 )
zlib? ( sys-libs/zlib )
sdl? (
media-libs/libsdl[joystick,video]
)
!sdl? (
fullscreen? (
x11-libs/libXrandr
x11-libs/libXxf86vm )
x11-libs/libX11
x11-libs/libXext
sys-libs/readline:0
)
gtk? (
x11-libs/gtk+:2
vte? ( x11-libs/vte:0 )
x11-libs/gtkglext
${GTK_COMMON}
)
!sdl? ( !gtk? (
x11-libs/libXmu
x11-libs/libXpm
x11-libs/libXt
x11-libs/libXv
Xaw3d? ( x11-libs/libXaw3d )
!Xaw3d? ( x11-libs/libXaw )
) )
"
DEPEND="${RDEPEND}
virtual/pkgconfig
!sdl? (
fullscreen? ( x11-proto/xf86vidmodeproto )
!gtk? (
x11-libs/libICE
x11-libs/libSM
)
)
x11-apps/bdftopcf
x11-apps/mkfontdir
x11-proto/xproto
x11-proto/xextproto
media-libs/fontconfig
x11-proto/videoproto
nls? ( sys-devel/gettext )"
PATCH=(
"${FILESDIR}"/${P}-autotools.patch
)
#"${FILESDIR}"/vice_rath.txt
src_prepare() {
default
sed -i \
-e 's/building//' \
doc/Makefile.am || die
sed -i \
-e "/^docdir =/s:=.*:=/usr/share/doc/${PF}:" \
doc/Makefile.am \
doc/readmes/Makefile.am || die
sed -i \
-e "/^docdir =/s:=.*:=/usr/share/doc/${PF}/html:" \
doc/html/Makefile.am || die
sed -i \
-e "s:/usr/local/lib/VICE:/usr/$(get_libdir)/${PN}:" \
man/vice.1 \
$(grep -rl --exclude="*texi" /usr/local/lib doc) || die
sed -i \
-e "/VICEDIR=/s:=.*:=\"/usr/$(get_libdir)/${PN}\";:" \
configure.ac || die
sed -i \
-e "s:\(#define LIBDIR \).*:\1\"/usr/$(get_libdir)/${PN}\":" \
-e "s:\(#define DOCDIR \).*:\1\"/usr/share/doc/${PF}\":" \
src/arch/unix/archdep.h \
src/arch/sdl/archdep_unix.h || die
rm -rf src/lib/{libffmpeg,liblame} || die
sed -i \
-e '/SUBDIRS/s/libffmpeg//;' \
-e '/SUBDIRS/s/liblame//;' \
src/lib/Makefile.am || die
AT_NO_RECURSIVE=1 eautoreconf
}
src_configure() {
local gui_arg snd_arg
snd_arg+=" $(use_with alsa)"
snd_arg+=" $(use_with oss)"
snd_arg+=" $(use_with pulseaudio pulse)"
snd_arg+=" $(use_with sdlsound)"
gui_arg+=" $(use_enable sdl sdlui)"
# The gtk UI code has raw calls to XOpenDisplay and
# is missing -lX11 if vte doesn't pull it in.
if use gtk || use gtk3 ; then
use vte || append-libs -lX11
fi
gui_arg+=" $(use_enable gtk gnomeui)"
gui_arg+=" $(use_enable gtk3 gnomeui3)"
gui_arg+=" $(use_enable Xaw3d xaw3d)"
# --with-readline is forced to avoid using the embedded copy
# don't try to actually run fc-cache (bug #280976)
FCCACHE=/bin/true \
PKG_CONFIG=$(tc-getPKG_CONFIG) \
econf \
--enable-parsid \
--with-resid \
--with-readline \
--without-arts \
--without-midas \
$(use_enable ethernet) \
$(use_enable ffmpeg) \
$(use_enable ffmpeg external-ffmpeg) \
$(use_enable fullscreen) \
$(use_enable ipv6) \
$(use_enable lame) \
$(use_enable nls) \
$(use_enable vte) \
$(use_with png) \
$(use_with threads uithreads) \
$(use_with zlib) \
${gui_arg} \
${snd_arg} \
--disable-option-checking
# --disable-option-checking has to be last
}
src_install() {
DOCS="FEEDBACK"
default
}