Lines 1-4
Link Here
|
1 |
# Copyright 1999-2016 Gentoo Foundation |
1 |
# Copyright 1999-2018 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
3 |
|
4 |
# Regarding licenses: libgarglk is licensed under the GPLv2. Bundled |
4 |
# Regarding licenses: libgarglk is licensed under the GPLv2. Bundled |
Lines 8-15
Link Here
|
8 |
# Since we don't compile or install any of the bundled fonts, their licenses |
8 |
# Since we don't compile or install any of the bundled fonts, their licenses |
9 |
# don't apply. (Fonts are installed through dependencies instead.) |
9 |
# don't apply. (Fonts are installed through dependencies instead.) |
10 |
|
10 |
|
11 |
EAPI=5 |
11 |
EAPI=6 |
12 |
inherit eutils flag-o-matic multiprocessing toolchain-funcs gnome2-utils games |
12 |
inherit eutils flag-o-matic gnome2-utils multilib multiprocessing toolchain-funcs |
13 |
|
13 |
|
14 |
DESCRIPTION="An Interactive Fiction (IF) player supporting all major formats" |
14 |
DESCRIPTION="An Interactive Fiction (IF) player supporting all major formats" |
15 |
HOMEPAGE="http://ccxvii.net/gargoyle/" |
15 |
HOMEPAGE="http://ccxvii.net/gargoyle/" |
Lines 21-27
Link Here
|
21 |
IUSE="" |
21 |
IUSE="" |
22 |
|
22 |
|
23 |
RDEPEND=" |
23 |
RDEPEND=" |
24 |
>=media-fonts/libertine-5 |
24 |
media-fonts/libertine |
25 |
media-fonts/liberation-fonts |
25 |
media-fonts/liberation-fonts |
26 |
media-libs/freetype:2 |
26 |
media-libs/freetype:2 |
27 |
media-libs/libpng:0 |
27 |
media-libs/libpng:0 |
Lines 52-62
Link Here
|
52 |
# Convert garglk.ini to UNIX format. |
52 |
# Convert garglk.ini to UNIX format. |
53 |
edos2unix garglk/garglk.ini |
53 |
edos2unix garglk/garglk.ini |
54 |
|
54 |
|
55 |
# The font name of Linux Libertine changed in version 5. |
|
|
56 |
sed -i -e 's/Linux Libertine O/Linux Libertine/g' garglk/garglk.ini || die |
57 |
|
58 |
epatch "${FILESDIR}"/${P}-desktopfile.patch |
55 |
epatch "${FILESDIR}"/${P}-desktopfile.patch |
59 |
append-cflags -std=gnu89 # build with gcc5 (bug #573378) |
56 |
append-cflags -std=gnu89 # build with gcc5 (bug #573378) |
|
|
57 |
append-cxxflags -std=gnu++11 # code assumes C++11 semantics (bug #642996) |
58 |
default |
60 |
} |
59 |
} |
61 |
|
60 |
|
62 |
src_compile() { |
61 |
src_compile() { |
Lines 69-75
Link Here
|
69 |
-sC++="$(tc-getCXX) ${CXXFLAGS}" \ |
68 |
-sC++="$(tc-getCXX) ${CXXFLAGS}" \ |
70 |
-sCXX="$(tc-getCXX) ${CXXFLAGS}" \ |
69 |
-sCXX="$(tc-getCXX) ${CXXFLAGS}" \ |
71 |
-sC++FLAGS="" \ |
70 |
-sC++FLAGS="" \ |
72 |
-sGARGLKINI="${GAMES_SYSCONFDIR}/garglk.ini" \ |
71 |
-sGARGLKINI="/etc/garglk.ini" \ |
73 |
-sUSESDL=yes \ |
72 |
-sUSESDL=yes \ |
74 |
-sBUNDLEFONTS=no \ |
73 |
-sBUNDLEFONTS=no \ |
75 |
-dx \ |
74 |
-dx \ |
Lines 78-92
Link Here
|
78 |
|
77 |
|
79 |
src_install() { |
78 |
src_install() { |
80 |
DESTDIR="${D}" \ |
79 |
DESTDIR="${D}" \ |
81 |
_BINDIR="${GAMES_PREFIX}/libexec/${PN}" \ |
80 |
_BINDIR="/usr/libexec/${PN}" \ |
82 |
_APPDIR="${GAMES_PREFIX}/libexec/${PN}" \ |
81 |
_APPDIR="/usr/libexec/${PN}" \ |
83 |
_LIBDIR="$(games_get_libdir)" \ |
82 |
_LIBDIR="/usr/$(get_libdir)" \ |
84 |
EXEMODE=755 \ |
83 |
EXEMODE=755 \ |
85 |
FILEMODE=755 \ |
84 |
FILEMODE=755 \ |
86 |
jam install || die |
85 |
jam install || die |
87 |
|
86 |
|
88 |
# Install config file. |
87 |
# Install config file. |
89 |
insinto "${GAMES_SYSCONFDIR}" |
88 |
insinto "/etc" |
90 |
newins garglk/garglk.ini garglk.ini |
89 |
newins garglk/garglk.ini garglk.ini |
91 |
|
90 |
|
92 |
# Install application entry and icon. |
91 |
# Install application entry and icon. |
Lines 97-120
Link Here
|
97 |
for terp in advsys agility alan2 alan3 frotz geas git glulxe hugo jacl \ |
96 |
for terp in advsys agility alan2 alan3 frotz geas git glulxe hugo jacl \ |
98 |
level9 magnetic nitfol scare tadsr |
97 |
level9 magnetic nitfol scare tadsr |
99 |
do |
98 |
do |
100 |
dosym "${GAMES_PREFIX}/libexec/${PN}/${terp}" \ |
99 |
dosym "/usr/libexec/${PN}/${terp}" \ |
101 |
"${GAMES_BINDIR}/${PN}-${terp}" |
100 |
"/usr/bin/${PN}-${terp}" |
102 |
done |
101 |
done |
103 |
|
102 |
|
104 |
# Also symlink the main binary since it resides in libexec. |
103 |
# Also symlink the main binary since it resides in libexec. |
105 |
dosym "${GAMES_PREFIX}/libexec/${PN}/${PN}" \ |
104 |
dosym "/usr/libexec/${PN}/${PN}" \ |
106 |
"${GAMES_BINDIR}/${PN}" |
105 |
"/usr/bin/${PN}" |
107 |
|
|
|
108 |
prepgamesdirs |
109 |
} |
106 |
} |
110 |
|
107 |
|
111 |
pkg_preinst() { |
108 |
pkg_preinst() { |
112 |
games_pkg_preinst |
|
|
113 |
gnome2_icon_savelist |
109 |
gnome2_icon_savelist |
114 |
} |
110 |
} |
115 |
|
111 |
|
116 |
pkg_postinst() { |
112 |
pkg_postinst() { |
117 |
games_pkg_postinst |
|
|
118 |
gnome2_icon_cache_update |
113 |
gnome2_icon_cache_update |
119 |
} |
114 |
} |
120 |
|
115 |
|