diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2021-02-03 13:06:19 +0100 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2021-02-03 13:07:45 +0100 |
commit | 8922cea67c2c453745af5f8c2b54127337f13272 (patch) | |
tree | 708120bc9c050751ef975e82cc5d49d89c89b67d /sys-apps/usb_modeswitch | |
parent | www-client/opera: remove old (diff) | |
download | gentoo-8922cea67c2c453745af5f8c2b54127337f13272.tar.gz gentoo-8922cea67c2c453745af5f8c2b54127337f13272.tar.bz2 gentoo-8922cea67c2c453745af5f8c2b54127337f13272.zip |
sys-apps/usb_modeswitch: Bump to version 2.6.0
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'sys-apps/usb_modeswitch')
-rw-r--r-- | sys-apps/usb_modeswitch/Manifest | 2 | ||||
-rw-r--r-- | sys-apps/usb_modeswitch/usb_modeswitch-2.6.0.ebuild | 70 |
2 files changed, 72 insertions, 0 deletions
diff --git a/sys-apps/usb_modeswitch/Manifest b/sys-apps/usb_modeswitch/Manifest index ee724f34b697..27b399c42f6a 100644 --- a/sys-apps/usb_modeswitch/Manifest +++ b/sys-apps/usb_modeswitch/Manifest @@ -1,2 +1,4 @@ DIST usb-modeswitch-2.5.2.tar.bz2 259820 BLAKE2B 263d0b8c4ec79eebb1f79cfd171973f0d6cab96bd361b54c5fed8908745eb4643af935edff788b0913f8ba5ba1edcb683c75aeff6c426437c8436c74f875982b SHA512 ad2a7e5134379664fca83b85803e52ec8e3fe3c2d6c633eb5af3c291c43b15ca4a67198612864de01d146a029ee5c475c8c7dc71d16e3a475b532837c5dd34ea +DIST usb-modeswitch-2.6.0.tar.bz2 44971 BLAKE2B c1b7484e2c9df9eb0097b3d560adedafe169bf797cc6d8702a83bf47ebadcb9601f32112b14fb65fe164455c536a0d5f66319d5927d81e59298b7820c9fe9b11 SHA512 43e6d885380602ddaaf771af73a302a7de30f7ae6ea58b2b572a9ad9ec77a453789020595de33a8b04ec209414fe08face2bbf84c67271d7b6b90700face09ef DIST usb-modeswitch-data-20170806.tar.bz2 32700 BLAKE2B 954aa513a74774cdabb2e3820fa56f1244de74cbfc0adda5309e4dc3bd79c2b6dd2023a5180f8d39f8b496485e1991de2a7fabbb59f6995fc7e0c0bb0b782243 SHA512 818bc9f3d9b75df245bb25f959075041667607e7681bdbca7006ec036613130a0fa5e41da9e939ca510e524a78a7a76aef82ecfbbe19611887b3735987b951cc +DIST usb-modeswitch-data-20191128.tar.bz2 34069 BLAKE2B f6bf0c54ea51cda361ef9476875e0311f2c0e839c9e5f0a9ca2a0e5444fa16be65a436d98291e97d338d0416a7367c6abcae1a9877470246ed9f84d25dbe3e06 SHA512 4b5954ad83f7281e42321c16f5cc5b956923cc0e2db5f238cc64b3ea37a419768f01f2e26310f2b4fe9a9a5b1d901517933effd6e6edd23bc9b8d0c039ed0ba2 diff --git a/sys-apps/usb_modeswitch/usb_modeswitch-2.6.0.ebuild b/sys-apps/usb_modeswitch/usb_modeswitch-2.6.0.ebuild new file mode 100644 index 000000000000..fdfb03816c97 --- /dev/null +++ b/sys-apps/usb_modeswitch/usb_modeswitch-2.6.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit linux-info toolchain-funcs udev systemd + +MY_PN=${PN/_/-} +MY_P=${MY_PN}-${PV/_p*} +#DATA_VER=${PV/*_p} +DATA_VER="20191128" + +DESCRIPTION="A tool for controlling 'flip flop' (multiple devices) USB gear like UMTS sticks" +HOMEPAGE="https://www.draisberghof.de/usb_modeswitch/ https://www.draisberghof.de/usb_modeswitch/device_reference.txt" +SRC_URI="https://www.draisberghof.de/${PN}/${MY_P}.tar.bz2 + https://www.draisberghof.de/${PN}/${MY_PN}-data-${DATA_VER}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +RDEPEND=" + virtual/udev + virtual/libusb:1 +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig +" + +S=${WORKDIR}/${MY_P} + +CONFIG_CHECK="~USB_SERIAL" + +PATCHES=( "${FILESDIR}/usb_modeswitch.sh-tmpdir.patch" ) + +src_prepare() { + default + sed -i -e '/install.*BIN/s:-s::' Makefile || die +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + emake \ + DESTDIR="${D}" \ + SYSDIR="${D}/$(systemd_get_systemunitdir)" \ + UDEVDIR="${D}/${EPREFIX}$(get_udevdir)" \ + 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 || die + emake \ + DESTDIR="${D}" \ + RULESDIR="${D}/${EPREFIX}$(get_udevdir)/rules.d" \ + files-install db-install + docinto data + dodoc ChangeLog README + popd &>/dev/null || die + + keepdir /var/lib/${PN} +} |