zerbino n00b
Joined: 10 Apr 2014 Posts: 13
|
Posted: Tue Apr 29, 2014 6:11 pm Post subject: INSTEAD (platform for text-based adventures) ebuild |
|
|
Please help me with ebuild for INSTEAD.
INSTEAD is platform for text-based adventures (http://instead.syscall.ru).
So, there is a ebuild for it, but I want to implement all features.
1. INSTEAD can be compiled with (lua51 | lua52 | luajit).
2. It can be compiled with (sdl | sdl2).
3. It can be compiled with (gtk2 | gtk3).
4. docs are optional feature too.
5. It can be compiled (configure,make,make install | cmake).
So, there is an existing ebuild.
How can I implement all 1-5 in it?
Thanks.
current instead-2.0.3.ebuild is:
[spoiler]
Code: |
# $Header: $
EAPI=2
inherit cmake-utils games
DESCRIPTION="INSTEAD quest engine"
HOMEPAGE="http://instead.sf.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gtk3 +iconv sdl2 lua51 lua52 luajit"
DEPEND="||
(
lua51? ( =dev-lang/lua-5.1* )
lua52? ( =dev-lang/lua-5.2* )
luajit? ( =dev-lang/luajit-2* )
)
sdl2? ( media-libs/libsdl2
media-libs/sdl2-mixer
media-libs/sdl2-image
media-libs/sdl2-ttf )
!sdl2? ( media-libs/libsdl
media-libs/sdl-mixer
media-libs/sdl-image
media-libs/sdl-ttf )
gtk3? ( x11-libs/gtk+:3 )
!gtk3? ( x11-libs/gtk+:2 )
iconv? ( virtual/libiconv )"
RDEPEND="${DEPEND}"
src_configure() {
mycmakeargs=(
-DCMAKE_INSTALL_PREFIX=""
-DBINDIR=${GAMES_BINDIR}
-DDATADIR=${GAMES_DATADIR}/${PN}
-DSHAREDIR=${GAMES_DATADIR}/${PN}
-DDOCDIR=${GAMES_DATADIR}/doc/${PN}
-DICONDIR=/usr/share/pixmaps
-DMANDIR=/usr/share/man
-DDESKTOPDIR=/usr/share/applications
$(cmake-utils_use_with gtk3 GTK3)
$(cmake-utils_use_with !gtk3 GTK2)
$(cmake-utils_use_with sdl2 SDL2)
$(cmake-utils_use_with iconv ICONV)
)
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
}
src_install() {
cmake-utils_src_install
}
|
[/spoiler] |
|