summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2012-03-15 07:03:05 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2012-03-15 07:03:05 +0000
commitae103d77c3a244e4d8331ce54353a95b260f9df5 (patch)
tree9b2e17cbe660d5ce125bcf02d7a6830c02b1c9b9 /sys-apps/usb_modeswitch
parentAdd missing deps, #408235; dropped old (diff)
downloadgentoo-2-ae103d77c3a244e4d8331ce54353a95b260f9df5.tar.gz
gentoo-2-ae103d77c3a244e4d8331ce54353a95b260f9df5.tar.bz2
gentoo-2-ae103d77c3a244e4d8331ce54353a95b260f9df5.zip
Version bump wrt #407237 and display a warning if CONFIG_USB_SERIAL is unset #407241 by Pacho Ramos.
(Portage version: 2.2.0_alpha90/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/usb_modeswitch')
-rw-r--r--sys-apps/usb_modeswitch/ChangeLog10
-rw-r--r--sys-apps/usb_modeswitch/usb_modeswitch-1.2.3.ebuild47
2 files changed, 56 insertions, 1 deletions
diff --git a/sys-apps/usb_modeswitch/ChangeLog b/sys-apps/usb_modeswitch/ChangeLog
index 9d9ed7627b7f..57ee239260fd 100644
--- a/sys-apps/usb_modeswitch/ChangeLog
+++ b/sys-apps/usb_modeswitch/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for sys-apps/usb_modeswitch
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/usb_modeswitch/ChangeLog,v 1.22 2012/01/01 17:50:04 rafaelmartins Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/usb_modeswitch/ChangeLog,v 1.23 2012/03/15 07:03:05 ssuominen Exp $
+
+*usb_modeswitch-1.2.3 (15 Mar 2012)
+
+ 15 Mar 2012; Samuli Suominen <ssuominen@gentoo.org>
+ +usb_modeswitch-1.2.3.ebuild:
+ Version bump wrt #407237 and display a warning if CONFIG_USB_SERIAL is unset
+ #407241 by Pacho Ramos. Use /lib/udev instead of /$(get_libdir)/udev and yes,
+ this is really correct. Install ChangeLog and README.
*usb_modeswitch-1.2.1 (01 Jan 2012)
diff --git a/sys-apps/usb_modeswitch/usb_modeswitch-1.2.3.ebuild b/sys-apps/usb_modeswitch/usb_modeswitch-1.2.3.ebuild
new file mode 100644
index 000000000000..4a905db9b422
--- /dev/null
+++ b/sys-apps/usb_modeswitch/usb_modeswitch-1.2.3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/usb_modeswitch/usb_modeswitch-1.2.3.ebuild,v 1.1 2012/03/15 07:03:05 ssuominen Exp $
+
+EAPI=4
+inherit linux-info toolchain-funcs
+
+MY_PN=${PN/_/-}
+MY_P=${MY_PN}-${PV}
+DATA_VER=20120120
+
+DESCRIPTION="USB_ModeSwitch is a tool for controlling 'flip flop' (multiple devices) USB gear like UMTS sticks"
+HOMEPAGE="http://www.draisberghof.de/usb_modeswitch/"
+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 ~x86"
+IUSE=""
+
+DEPEND="virtual/libusb:0"
+RDEPEND="${DEPEND}
+ dev-lang/tcl" # usb_modeswitch script is tcl
+
+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}" install
+ dodoc ChangeLog README
+
+ pushd ../${MY_PN}-data-${DATA_VER} >/dev/null
+ emake DESTDIR="${D}" files-install db-install
+ docinto data
+ dodoc ChangeLog README
+ popd >/dev/null
+}