summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Bornkessel <hd_brummy@gentoo.org>2008-08-10 18:53:32 +0000
committerJoerg Bornkessel <hd_brummy@gentoo.org>2008-08-10 18:53:32 +0000
commite88df5fac337d75ec4d4cfa68c636a868e2b93b0 (patch)
treeec5ebcc1afcdaf0b3eb7c06eff7c008dbf7364ed /app-misc/irtrans-irserver/irtrans-irserver-5.11.10.ebuild
parentversion bump, includes now arm support; thanks to M.Fetka on #232227 (diff)
downloadhistorical-e88df5fac337d75ec4d4cfa68c636a868e2b93b0.tar.gz
historical-e88df5fac337d75ec4d4cfa68c636a868e2b93b0.tar.bz2
historical-e88df5fac337d75ec4d4cfa68c636a868e2b93b0.zip
version bump, includes now arm support; thanks to M.Fetka on #232227
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'app-misc/irtrans-irserver/irtrans-irserver-5.11.10.ebuild')
-rw-r--r--app-misc/irtrans-irserver/irtrans-irserver-5.11.10.ebuild66
1 files changed, 66 insertions, 0 deletions
diff --git a/app-misc/irtrans-irserver/irtrans-irserver-5.11.10.ebuild b/app-misc/irtrans-irserver/irtrans-irserver-5.11.10.ebuild
new file mode 100644
index 000000000000..1c263e373efb
--- /dev/null
+++ b/app-misc/irtrans-irserver/irtrans-irserver-5.11.10.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/irtrans-irserver/irtrans-irserver-5.11.10.ebuild,v 1.1 2008/08/10 18:53:32 hd_brummy Exp $
+
+inherit eutils flag-o-matic toolchain-funcs
+
+RESTRICT="strip"
+
+DESCRIPTION="IRTrans Server"
+HOMEPAGE="http://www.irtrans.de"
+SRC_URI="http://ftp.mars.arge.at/irtrans/irserver-src-${PV}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~arm"
+IUSE=""
+
+DEPEND="virtual/libc"
+
+src_unpack() {
+ unpack ${A}
+ cd "${WORKDIR}"
+
+ epatch "${FILESDIR}/${PN}"-5.11.08-arm_remotes-1.patch
+}
+
+src_compile() {
+
+ append-flags -DLINUX -Icommon
+
+ # Set sane defaults (arm target has no -D flags added)
+ irbuild=irserver_arm_noccf
+ irserver=irserver
+
+ # change variable by need
+ if use x86 ; then
+ irbuild=irserver
+ elif use amd64 ; then
+ irbuild=irserver64
+ irserver=irserver64
+ elif use arm ; then
+ irbuild=irserver_arm
+ fi
+
+ # Some output for bugreport
+ einfo "CFLAGS=\"${CFLAGS}\""
+ einfo "Build Target=\"${irbuild}\""
+ einfo "Build Binary=\"${irserver}\""
+
+ # Build
+ emake CXX="$(tc-getCXX)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" "${irbuild}" || die "emake irserver failed"
+}
+
+src_install() {
+
+ newbin "${WORKDIR}/${irserver}" irserver
+
+ keepdir /etc/irserver/remotes
+
+ docinto remotes
+ dodoc remotes/*
+
+ newinitd "${FILESDIR}"/irtrans-server.initd irtrans-server
+ newconfd "${FILESDIR}"/irtrans-server.confd irtrans-server
+}
+