From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/usb_modeswitch/
Date: Fri, 16 Jul 2021 12:48:54 +0000 (UTC) [thread overview]
Message-ID: <1626439474.4c3b26f04a240f5f089d5d31ae6aa5d5f30f4c1d.asturm@gentoo> (raw)
commit: 4c3b26f04a240f5f089d5d31ae6aa5d5f30f4c1d
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 16 12:44:34 2021 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Jul 16 12:44:34 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c3b26f0
sys-apps/usb_modeswitch: 2.6.1 version bump, EAPI-8 bump
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
sys-apps/usb_modeswitch/Manifest | 1 +
.../usb_modeswitch/usb_modeswitch-2.6.1.ebuild | 67 ++++++++++++++++++++++
2 files changed, 68 insertions(+)
diff --git a/sys-apps/usb_modeswitch/Manifest b/sys-apps/usb_modeswitch/Manifest
index 14e998a405d..206d07b21cf 100644
--- a/sys-apps/usb_modeswitch/Manifest
+++ b/sys-apps/usb_modeswitch/Manifest
@@ -1,2 +1,3 @@
DIST usb-modeswitch-2.6.0.tar.bz2 44971 BLAKE2B c1b7484e2c9df9eb0097b3d560adedafe169bf797cc6d8702a83bf47ebadcb9601f32112b14fb65fe164455c536a0d5f66319d5927d81e59298b7820c9fe9b11 SHA512 43e6d885380602ddaaf771af73a302a7de30f7ae6ea58b2b572a9ad9ec77a453789020595de33a8b04ec209414fe08face2bbf84c67271d7b6b90700face09ef
+DIST usb-modeswitch-2.6.1.tar.bz2 45471 BLAKE2B a28b3549410f781b58cec78003f7d2c917f65113415111df6e28ed56e5b34d9ee20ec33b6f6e9737ddb56bf3887c900706090f10ff4bf9e0797c17f77320081e SHA512 5d800b45257ca1182a13155dc37b614ee2d93273ed226cc9d05b6ae423f9e88b7c9aca6829604bdb86f68707ddf2c51c9ad2bcf898b8261b2c5bb56a21351e1e
DIST usb-modeswitch-data-20191128.tar.bz2 34069 BLAKE2B f6bf0c54ea51cda361ef9476875e0311f2c0e839c9e5f0a9ca2a0e5444fa16be65a436d98291e97d338d0416a7367c6abcae1a9877470246ed9f84d25dbe3e06 SHA512 4b5954ad83f7281e42321c16f5cc5b956923cc0e2db5f238cc64b3ea37a419768f01f2e26310f2b4fe9a9a5b1d901517933effd6e6edd23bc9b8d0c039ed0ba2
diff --git a/sys-apps/usb_modeswitch/usb_modeswitch-2.6.1.ebuild b/sys-apps/usb_modeswitch/usb_modeswitch-2.6.1.ebuild
new file mode 100644
index 00000000000..c737fd67678
--- /dev/null
+++ b/sys-apps/usb_modeswitch/usb_modeswitch-2.6.1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-info systemd toolchain-funcs udev
+
+MY_PN=${PN/_/-}
+MY_P=${MY_PN}-${PV/_p*}
+#DATA_VER=${PV/*_p}
+DATA_VER="20191128"
+
+DESCRIPTION="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"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE=""
+
+RDEPEND="
+ virtual/udev
+ virtual/libusb:1
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+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}
+}
next reply other threads:[~2021-07-16 12:48 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-16 12:48 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-10 3:41 [gentoo-commits] repo/gentoo:master commit in: sys-apps/usb_modeswitch/ Sam James
2022-07-20 13:59 Pacho Ramos
2021-08-26 17:28 Andreas Sturmlechner
2021-08-26 14:55 Sam James
2021-08-26 7:12 Agostino Sarubbo
2021-08-26 3:00 Sam James
2021-04-19 19:19 Andreas Sturmlechner
2021-04-19 19:12 Sam James
2021-04-18 21:27 Sam James
2021-04-18 21:20 Sam James
2021-02-21 8:06 Sam James
2021-02-03 12:07 Lars Wendler
2020-01-09 18:41 Rafael Martins
2018-10-17 10:01 Mikle Kolyada
2018-10-07 11:56 Mikle Kolyada
2018-10-05 12:25 Thomas Deutschmann
2018-03-25 20:40 Gilles Dartiguelongue
2016-09-05 20:50 Manuel Rüger
2016-01-19 20:52 Manuel Rüger
2016-01-19 20:52 Manuel Rüger
2016-01-09 16:15 Markus Meier
2016-01-02 16:28 Agostino Sarubbo
2015-11-15 12:32 Manuel Rüger
2015-10-03 11:12 Pacho Ramos
2015-10-03 11:12 Pacho Ramos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1626439474.4c3b26f04a240f5f089d5d31ae6aa5d5f30f4c1d.asturm@gentoo \
--to=asturm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox