diff options
author | Michael Mair-Keimberger <m.mairkeimberger@gmail.com> | 2018-06-22 15:41:05 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2018-08-21 14:46:13 +0200 |
commit | b1a5daf97d417643702f543f03df8962d5e34d27 (patch) | |
tree | 1cc34939e879df794dc621747d50298947bbfcf1 /app-misc | |
parent | media-video/shotcut: Fix media-libs/mlt usedeps to sdl,sdl2(+) (diff) | |
download | gentoo-b1a5daf97d417643702f543f03df8962d5e34d27.tar.gz gentoo-b1a5daf97d417643702f543f03df8962d5e34d27.tar.bz2 gentoo-b1a5daf97d417643702f543f03df8962d5e34d27.zip |
app-misc/irtrans-irclient: EAPI 7 bump + improve ebuild.
Closes: https://github.com/gentoo/gentoo/pull/9028
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/irtrans-irclient/irtrans-irclient-6.01.05-r1.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/app-misc/irtrans-irclient/irtrans-irclient-6.01.05-r1.ebuild b/app-misc/irtrans-irclient/irtrans-irclient-6.01.05-r1.ebuild new file mode 100644 index 000000000000..ace60918ca5c --- /dev/null +++ b/app-misc/irtrans-irclient/irtrans-irclient-6.01.05-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic toolchain-funcs + +RESTRICT="strip" + +DESCRIPTION="ASCII Client for the IRTrans Server" +HOMEPAGE="http://www.irtrans.de" +SRC_URI="http://www.irtrans.de/download/Client/irclient-src.tar.gz -> irclient-src-${PV}.tar.gz + http://ftp.disconnected-by-peer.at/irtrans/${PN}-5.11.04-ip_assign-1.patch.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86 ~amd64 ~arm" + +S="${WORKDIR}" + +PATCHES=( "${WORKDIR}/${PN}"-5.11.04-ip_assign-1.patch ) + +src_compile() { + append-flags -DLINUX + + # Set sane defaults (arm target has no -D flags added) + local irbuild + local ipbuild + irclient=irclient + ip_assign=ip_assign + + # change variable by need + if use amd64; then + irbuild=irclient64 + irclient=irclient64 + ipbuild=ip_assign64 + ip_assign=ip_assign64 + elif use arm; then + irbuild=irclient_arm + ipbuild=ip_assign_arm + elif use x86; then + irbuild=irclient + ipbuild=ip_assign + fi + + emake CXX="$(tc-getCXX)" CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CXXFLAGS="${CXXFLAGS}" \ + "${irbuild}" + emake CXX="$(tc-getCXX)" CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CXXFLAGS="${CXXFLAGS}" \ + "${ipbuild}" +} + +src_install() { + newbin "${irclient}" irclient + newbin "${ip_assign}" ip_assign +} |