source: app-misc/irtrans-irserver/irtrans-irserver-6.09.04.ebuild @ 8a559d7

Revision 8a559d7, 2.0 KB checked in by Mario Fetka <mario.fetka@…>, 8 years ago (diff)

Bump

(Portage version: 2.2.0_alpha123/git/Linux x86_64, unsigned Manifest commit)

  • Property mode set to 100644
Line 
1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: $
4
5EAPI="2"
6
7inherit eutils flag-o-matic toolchain-funcs mono multilib
8
9RESTRICT="strip"
10
11DESCRIPTION="IRTrans Server"
12HOMEPAGE="http://www.irtrans.de"
13SRC_URI="http://www.irtrans.de/download/Server/Linux/irserver-src.tar.gz -> irserver-src-${PV}.tar.gz
14        http://www.irtrans.de/download/Server/Linux/irserver.tar.gz -> irserver-${PV}.tar.gz
15        http://ftp.disconnected-by-peer.at/irtrans/irserver-src-${PV}.tar.gz
16        http://ftp.disconnected-by-peer.at/irtrans/irserver-${PV}.tar.gz"
17
18LICENSE="BSD"
19SLOT="0"
20KEYWORDS="~x86 ~amd64 ~arm"
21IUSE="mono"
22
23DEPEND=""
24RDEPEND="mono? ( >=dev-lang/mono-2.10.5 )
25        ${RDEPEND}"
26
27S="${WORKDIR}"
28
29src_prepare() {
30        sed -e 's!^ODIRARM = .*!ODIRARM = n800!' -i makefile
31}
32
33src_compile() {
34
35        append-flags -DLINUX
36
37        # Set sane defaults (arm target has no -D flags added)
38        irbuild=irserver_arm_noccf
39        irserver=irserver
40
41        # change variable by need
42        if use x86 ; then
43                irbuild=irserver
44        elif use amd64 ; then
45                irbuild=irserver64
46                irserver=irserver64
47        elif use arm ; then
48                irbuild=irserver_arm
49        fi
50
51        # Some output for bugreport
52        einfo "CFLAGS=\"${CFLAGS}\""
53        einfo "Build Target=\"${irbuild}\""
54        einfo "Build Binary=\"${irserver}\""
55
56        # Build
57        emake CXX="$(tc-getCXX)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" "${irbuild}" || die "emake irserver failed"
58}
59
60src_install() {
61
62        newbin "${WORKDIR}/${irserver}" irserver
63
64        keepdir /etc/irserver/remotes
65
66        docinto remotes
67        dodoc remotes/*
68
69        newinitd "${FILESDIR}"/irtrans-server.initd irtrans-server
70        newconfd "${FILESDIR}"/irtrans-server.confd irtrans-server
71
72        if use mono ; then
73                # Wrapper script to launch mono
74                make_wrapper irguiclient "mono /usr/$(get_libdir)/${PN}/GUIClient.exe"
75
76                insinto /usr/$(get_libdir)/${PN}/
77                exeinto /usr/$(get_libdir)/${PN}/
78
79                # The Libs and Translations
80                doins GUIClient/*.tra
81                doexe GUIClient/*.dll
82
83                # The actual executable
84                doexe GUIClient/*.exe
85        fi
86
87}
Note: See TracBrowser for help on using the repository browser.