diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2013-06-24 17:42:24 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2013-06-24 17:42:24 +0000 |
commit | c143b3d03561f12497a1465a56fc0a9922570238 (patch) | |
tree | e9750bc8cdde5800f43e50493f1d6ce42b9b9ab7 | |
parent | Version bump. (diff) | |
download | gentoo-2-c143b3d03561f12497a1465a56fc0a9922570238.tar.gz gentoo-2-c143b3d03561f12497a1465a56fc0a9922570238.tar.bz2 gentoo-2-c143b3d03561f12497a1465a56fc0a9922570238.zip |
Version bump; introduce USE="jimtcl" wrt #409587 by Christian Faulhammer
(Portage version: 2.2.0_alpha183/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
-rw-r--r-- | sys-apps/usb_modeswitch/ChangeLog | 8 | ||||
-rw-r--r-- | sys-apps/usb_modeswitch/metadata.xml | 3 | ||||
-rw-r--r-- | sys-apps/usb_modeswitch/usb_modeswitch-1.2.6_p20130610.ebuild | 59 |
3 files changed, 69 insertions, 1 deletions
diff --git a/sys-apps/usb_modeswitch/ChangeLog b/sys-apps/usb_modeswitch/ChangeLog index ddfb89ce0280..3323d7539834 100644 --- a/sys-apps/usb_modeswitch/ChangeLog +++ b/sys-apps/usb_modeswitch/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-apps/usb_modeswitch # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/usb_modeswitch/ChangeLog,v 1.43 2013/02/12 19:35:06 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/usb_modeswitch/ChangeLog,v 1.44 2013/06/24 17:42:24 ssuominen Exp $ + +*usb_modeswitch-1.2.6_p20130610 (24 Jun 2013) + + 24 Jun 2013; Samuli Suominen <ssuominen@gentoo.org> + +usb_modeswitch-1.2.6_p20130610.ebuild, metadata.xml: + Version bump; introduce USE="jimtcl" wrt #409587 by Christian Faulhammer 12 Feb 2013; Agostino Sarubbo <ago@gentoo.org> usb_modeswitch-1.2.5_p20121109.ebuild: diff --git a/sys-apps/usb_modeswitch/metadata.xml b/sys-apps/usb_modeswitch/metadata.xml index 189317dcfefb..01048769a16b 100644 --- a/sys-apps/usb_modeswitch/metadata.xml +++ b/sys-apps/usb_modeswitch/metadata.xml @@ -2,6 +2,9 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>freedesktop</herd> + <use> + <flag name='jimtcl'>Use <pkg>dev-lang/jimtcl</pkg> instead of <pkg>dev-lang/tcl</pkg> for smaller memory footprint</flag> + </use> <maintainer> <email>rafaelmartins@gentoo.org</email> <name>Rafael G. Martins</name> diff --git a/sys-apps/usb_modeswitch/usb_modeswitch-1.2.6_p20130610.ebuild b/sys-apps/usb_modeswitch/usb_modeswitch-1.2.6_p20130610.ebuild new file mode 100644 index 000000000000..d2a3473c8098 --- /dev/null +++ b/sys-apps/usb_modeswitch/usb_modeswitch-1.2.6_p20130610.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2013 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.6_p20130610.ebuild,v 1.1 2013/06/24 17:42:24 ssuominen Exp $ + +EAPI=5 +inherit eutils linux-info toolchain-funcs udev + +MY_PN=${PN/_/-} +MY_P=${MY_PN}-${PV/_p*} +DATA_VER=${PV/*_p} + +DESCRIPTION="USB_ModeSwitch is 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 ~x86" +IUSE="jimtcl" + +COMMON_DEPEND="virtual/udev + virtual/libusb:0 + !<sys-apps/kmod-12-r1" +RDEPEND="${COMMON_DEPEND} + jimtcl? ( dev-lang/jimtcl ) + !jimtcl? ( dev-lang/tcl )" # 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}" \ + UDEVDIR="${D}/$(get_udevdir)" \ + $(usex jimtcl install-shared install) + + 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 +} |