Архив метки: ebuild

Ebuild Abgx 360

Выкладываю ebuild для Abgx360, может еще кому-то пригодится.

inherit eutils

DESCRIPTION="Tool for Xbox360 users"
HOMEPAGE="http://abgx360.x-scene.com/"

SLOT="0"
KEYWORDS="x86"
LICENSE="GPL-2"
IUSE="wxwidgets"
SRC_URI="http://abgx360.x-scene.com/${P}.tar.gz
wxwidgets? ( http://abgx360.x-scene.com/abgx360gui-${PV}.tar.gz )"

DEPEND=">=net-misc/curl-7.7.2
sys-libs/zlib
wxwidgets? ( >=x11-libs/wxGTK-2.7.1 )"

src_unpack() {
unpack "${P}.tar.gz"
if wxwidgets use; then
unpack "abgx360gui-${PV}.tar.gz"
fi
}

src_compile() {

cd "${P}"
econf
if use wxwidgets ; then
cd abgx360gui-${PV}
econf
fi
}

src_install() {
cd "${P}"
emake DESTDIR="${D}" install || die "Install failed"
if use wxwidgets ; then
cd "abgx360gui-${PV}"
emake DESTDIR="${D}" install || die "Install failed"
fi
}