summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2016-09-05 22:49:52 +0200
committerManuel Rüger <mrueg@gentoo.org>2016-09-05 22:49:52 +0200
commit6cf396f3515e8b1d238c346c2b17f93375fe3bb0 (patch)
tree2ac3b4b100fdd5661e6d39584b74fa24f229e4a4 /sys-apps/usb_modeswitch
parentdev-libs/libwacom: Version bump to 0.22 (diff)
downloadgentoo-6cf396f3515e8b1d238c346c2b17f93375fe3bb0.tar.gz
gentoo-6cf396f3515e8b1d238c346c2b17f93375fe3bb0.tar.bz2
gentoo-6cf396f3515e8b1d238c346c2b17f93375fe3bb0.zip
sys-apps/usb_modeswitch: Version bump to 2.4.0
Package-Manager: portage-2.3.0
Diffstat (limited to 'sys-apps/usb_modeswitch')
-rw-r--r--sys-apps/usb_modeswitch/Manifest2
-rw-r--r--sys-apps/usb_modeswitch/usb_modeswitch-2.4.0.ebuild67
2 files changed, 69 insertions, 0 deletions
diff --git a/sys-apps/usb_modeswitch/Manifest b/sys-apps/usb_modeswitch/Manifest
index 8ce3fde0d078..0388cadf4746 100644
--- a/sys-apps/usb_modeswitch/Manifest
+++ b/sys-apps/usb_modeswitch/Manifest
@@ -1,4 +1,6 @@
DIST usb-modeswitch-2.2.6.tar.bz2 263395 SHA256 7ee42be2fe26dde20c58f54bf678fb136d2706250e4aa74f06fc97268a46e90f SHA512 f19b4c88e9a32af55a4a552cf89a2d25343b499180e41fccf988d34613f8480d49b7586b9b123edabc7cdbbb23073678797e99b7b679dd758924c9300377e067 WHIRLPOOL 107bcbc886cb8fda0d4b754641f237e4d8aa9f491649ae5bf42ee0d589eefc003fa37fc59bea63fd722a4d408f226e427058a235cd27ec6fa984ca1dcfb0a3f3
DIST usb-modeswitch-2.3.0.tar.bz2 263141 SHA256 f93e940c2eb0c585a5d2210177338e68a9b24f409e351e4a854132453246b894 SHA512 5b7a012f31612ab53f817132e5055b45c056e5862f6daf9cb910c004878a93a46c0676040ba20323c110bd7fe3d5d26f2e16200ead2411d12f83e03278ff3a6c WHIRLPOOL 9f6407f21a91db689b465a513aaf685b9f51e5f0d0dbbd4b999bc10cd2236d27aee6a8ffed3bffd29b726f0c336bc2ac4203666674dc9871a5e7040910319987
+DIST usb-modeswitch-2.4.0.tar.bz2 259433 SHA256 17dc32bf10df8e370f2369b5137d34dfd8f2347faaa51524c5f21c922f42e212 SHA512 cf232b8333509012415fe9afbd1becbf54bbf7ebbb6cd450d16546840afc2dbdbc253f8ae6ae294c1e3a490d935e675b984a02ddbe243b57d80443f5d265117c WHIRLPOOL 9fa63f2252113a22d75065ef80fb13938a407c3731b52b47069dac8cc2d12d6eec7caaa91fc21c79f8aa4fe1094c056be70ddff80f8ca091dff60890d95308bf
DIST usb-modeswitch-data-20151101.tar.bz2 30350 SHA256 584d362bc0060c02016edaac7b05ebd6558d5dcbdf14f1ae6d0ec9630265a982 SHA512 416fcf5ca6834b0a7697df4ecdc3ca61c02da7ecd8aff8836b9b8a83be96f9df7fb85ed05befdb6257267875d96ee39ee30affedea9794250f9ea46c1aadd879 WHIRLPOOL 7f95be9e7237425eba32948a72614d4ee68956fad93f2ea0aacb6bf90a0e50240315b321602a1f60ddd4035a667e7ee5160089458220fd35e0634ead395664bd
DIST usb-modeswitch-data-20160112.tar.bz2 31166 SHA256 d679a44a48b1d1f243fea6b4d2bd54e0e08010ff579dd81eaf698954c0c6dfa7 SHA512 2da14d9a6e355921605f5e2231420326bae68b67466907b852c91a4f544101e31bccd703a6ecbae74b69cb518ab86d6732ffcacf4cbeccff55eea5befaedcaa3 WHIRLPOOL 7da9e88f0ba280643a1b04ba4a3d583dbbee2fe557bfdd759cd8b2fe272969eff8f0dbd7ca248ce0e3484037eee63872e2c8718d9b87ca8adc82e503caeb846f
+DIST usb-modeswitch-data-20160803.tar.bz2 31943 SHA256 83f4a277c6e34b8537740ae16bf9275008f7bf3f326134e0f846656a61a756fe SHA512 53c9ce700af986463e211fb918a06732df610403c149565c69e2d29ee5b248def7d607b2d10ba46da2b2d0be93803c1279e739b33eb14049520df6d556335608 WHIRLPOOL c2e2939102a52d975a58860cee79b7b6e8ed2bc917488f05f716c00b6d708eeb99a611b2a018ed13ba26d5f4006c659833c48448d808539e02285c8cd6ed33d6
diff --git a/sys-apps/usb_modeswitch/usb_modeswitch-2.4.0.ebuild b/sys-apps/usb_modeswitch/usb_modeswitch-2.4.0.ebuild
new file mode 100644
index 000000000000..ceb9bfd3b851
--- /dev/null
+++ b/sys-apps/usb_modeswitch/usb_modeswitch-2.4.0.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils linux-info toolchain-funcs udev systemd
+
+MY_PN=${PN/_/-}
+MY_P=${MY_PN}-${PV/_p*}
+#DATA_VER=${PV/*_p}
+DATA_VER="20160803"
+
+DESCRIPTION="A tool for controlling 'flip flop' (multiple devices) USB gear like UMTS sticks"
+HOMEPAGE="http://www.draisberghof.de/usb_modeswitch/ http://www.draisberghof.de/usb_modeswitch/device_reference.txt"
+SRC_URI="http://www.draisberghof.de/${PN}/${MY_P}.tar.bz2
+ http://www.draisberghof.de/${PN}/${MY_PN}-data-${DATA_VER}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="jimtcl"
+
+COMMON_DEPEND="
+ virtual/udev
+ virtual/libusb:1
+"
+RDEPEND="${COMMON_DEPEND}
+ jimtcl? ( dev-lang/jimtcl )
+ !jimtcl? ( dev-lang/tcl:0 )" # usb_modeswitch script is tcl
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+"
+
+S=${WORKDIR}/${MY_P}
+
+CONFIG_CHECK="~USB_SERIAL"
+
+src_prepare() {
+ sed -i -e '/install.*BIN/s:-s::' Makefile || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ SYSDIR="${D}/$(systemd_get_unitdir)" \
+ UDEVDIR="${D}/$(get_udevdir)" \
+ $(usex jimtcl install-shared install)
+
+ # Even if we set SYSDIR above, the Makefile is causing automagic detection of `systemctl` binary,
+ # which is why we need to force the .service file to be installed:
+ systemd_dounit ${PN}@.service
+
+ dodoc ChangeLog README
+
+ pushd ../${MY_PN}-data-${DATA_VER} >/dev/null
+ emake \
+ DESTDIR="${D}" \
+ RULESDIR="${D}/$(get_udevdir)/rules.d" \
+ files-install db-install
+ docinto data
+ dodoc ChangeLog README
+ popd >/dev/null
+}