diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2018-03-25 19:53:08 +0200 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2018-03-25 22:40:27 +0200 |
commit | 54bc2d02fa53adc994266479764f352543bbec67 (patch) | |
tree | fd57d9f99d4a6cfe9c405ea834a447c7294285b9 /sys-apps | |
parent | dev-libs/dbus-glib: cleanup old revisions (diff) | |
download | gentoo-54bc2d02fa53adc994266479764f352543bbec67.tar.gz gentoo-54bc2d02fa53adc994266479764f352543bbec67.tar.bz2 gentoo-54bc2d02fa53adc994266479764f352543bbec67.zip |
sys-apps/usb_modeswitch: version bump to 2.5.2, bug #622656
Closes: https://bugs.gentoo.org/show_bug.cgi?id=622656
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/usb_modeswitch/Manifest | 2 | ||||
-rw-r--r-- | sys-apps/usb_modeswitch/usb_modeswitch-2.5.2.ebuild | 67 |
2 files changed, 69 insertions, 0 deletions
diff --git a/sys-apps/usb_modeswitch/Manifest b/sys-apps/usb_modeswitch/Manifest index e88bb94f4567..5972f04a811c 100644 --- a/sys-apps/usb_modeswitch/Manifest +++ b/sys-apps/usb_modeswitch/Manifest @@ -1,6 +1,8 @@ DIST usb-modeswitch-2.2.6.tar.bz2 263395 BLAKE2B d9502bd56b967dd01f878be15cb6ce3dd545321dc5f7a6c813bba250236ce3db71635b9d26d31bde2c2a6ac08a11ac8472aeae92f55b3af2db694aad94f56e5a SHA512 f19b4c88e9a32af55a4a552cf89a2d25343b499180e41fccf988d34613f8480d49b7586b9b123edabc7cdbbb23073678797e99b7b679dd758924c9300377e067 DIST usb-modeswitch-2.3.0.tar.bz2 263141 BLAKE2B 106d3db684ce1f41b096398e6b46bac64427a86010993a3a6320655f1358e029b21815a8ca4c6818728f6b5fc9f14eac2680985219344396c560681e9f0ce146 SHA512 5b7a012f31612ab53f817132e5055b45c056e5862f6daf9cb910c004878a93a46c0676040ba20323c110bd7fe3d5d26f2e16200ead2411d12f83e03278ff3a6c DIST usb-modeswitch-2.4.0.tar.bz2 259433 BLAKE2B 97d57cc100c63078069092a1a1e5057e29ee1d108c37a2f19ad373f793ceb8678dc4da0c810cea7887ea81f24961def6e30ce46d59c6513033b1f60fa4f3f956 SHA512 cf232b8333509012415fe9afbd1becbf54bbf7ebbb6cd450d16546840afc2dbdbc253f8ae6ae294c1e3a490d935e675b984a02ddbe243b57d80443f5d265117c +DIST usb-modeswitch-2.5.2.tar.bz2 259820 BLAKE2B 263d0b8c4ec79eebb1f79cfd171973f0d6cab96bd361b54c5fed8908745eb4643af935edff788b0913f8ba5ba1edcb683c75aeff6c426437c8436c74f875982b SHA512 ad2a7e5134379664fca83b85803e52ec8e3fe3c2d6c633eb5af3c291c43b15ca4a67198612864de01d146a029ee5c475c8c7dc71d16e3a475b532837c5dd34ea DIST usb-modeswitch-data-20151101.tar.bz2 30350 BLAKE2B f9acb91e9f213a405c34349eaa8b0c0d59396eb182128cd96696d547849feeb8ce11f5d77d60f746fd0aa9993a9cc254f7269b376b077b5701a39f44f5319e5e SHA512 416fcf5ca6834b0a7697df4ecdc3ca61c02da7ecd8aff8836b9b8a83be96f9df7fb85ed05befdb6257267875d96ee39ee30affedea9794250f9ea46c1aadd879 DIST usb-modeswitch-data-20160112.tar.bz2 31166 BLAKE2B c9d036fc836502f3197b456afc9348836208af5ffdea6d8fa79c762a24afea807f41a78243d82a09e56bd0dedd30e633e49e7552ffe56cb685ffacbe2746f0a7 SHA512 2da14d9a6e355921605f5e2231420326bae68b67466907b852c91a4f544101e31bccd703a6ecbae74b69cb518ab86d6732ffcacf4cbeccff55eea5befaedcaa3 DIST usb-modeswitch-data-20160803.tar.bz2 31943 BLAKE2B 9b43c1a3e72497af1c935a61e0bbb7ad83b4d93619bb3897a5cead81e10572f8a705e7eb052ebde1ac04b85f4a367f07174a94b0828c1143136492fa98fa98cf SHA512 53c9ce700af986463e211fb918a06732df610403c149565c69e2d29ee5b248def7d607b2d10ba46da2b2d0be93803c1279e739b33eb14049520df6d556335608 +DIST usb-modeswitch-data-20170806.tar.bz2 32700 BLAKE2B 954aa513a74774cdabb2e3820fa56f1244de74cbfc0adda5309e4dc3bd79c2b6dd2023a5180f8d39f8b496485e1991de2a7fabbb59f6995fc7e0c0bb0b782243 SHA512 818bc9f3d9b75df245bb25f959075041667607e7681bdbca7006ec036613130a0fa5e41da9e939ca510e524a78a7a76aef82ecfbbe19611887b3735987b951cc diff --git a/sys-apps/usb_modeswitch/usb_modeswitch-2.5.2.ebuild b/sys-apps/usb_modeswitch/usb_modeswitch-2.5.2.ebuild new file mode 100644 index 000000000000..cf78e7d75d8c --- /dev/null +++ b/sys-apps/usb_modeswitch/usb_modeswitch-2.5.2.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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="20170806" + +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 + epatch "${FILESDIR}/usb_modeswitch.sh-tmpdir.patch" +} + +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 +} |