diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2009-07-15 17:33:34 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2009-07-15 17:33:34 +0000 |
commit | 3e547d37dc76a14d360ee1227ee324df95628ead (patch) | |
tree | a77116177e69d98ecd65a6a7d42e40613ddddd78 /media-sound/vkeybd | |
parent | Name module configuration files properly as per bug #277835. Thanks to MATSUU... (diff) | |
download | historical-3e547d37dc76a14d360ee1227ee324df95628ead.tar.gz historical-3e547d37dc76a14d360ee1227ee324df95628ead.tar.bz2 historical-3e547d37dc76a14d360ee1227ee324df95628ead.zip |
Port from ladcca to lash, thanks to proaudio overlay maintainers.
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
Diffstat (limited to 'media-sound/vkeybd')
-rw-r--r-- | media-sound/vkeybd/ChangeLog | 23 | ||||
-rw-r--r-- | media-sound/vkeybd/Manifest | 8 | ||||
-rw-r--r-- | media-sound/vkeybd/files/vkeybd-0.1.17b-desktop-entry.patch | 8 | ||||
-rw-r--r-- | media-sound/vkeybd/files/vkeybd-0.1.17b-lash.patch | 168 | ||||
-rw-r--r-- | media-sound/vkeybd/metadata.xml | 5 | ||||
-rw-r--r-- | media-sound/vkeybd/vkeybd-0.1.17b-r1.ebuild | 61 |
6 files changed, 252 insertions, 21 deletions
diff --git a/media-sound/vkeybd/ChangeLog b/media-sound/vkeybd/ChangeLog index ccef5162207e..71051a9a9f0a 100644 --- a/media-sound/vkeybd/ChangeLog +++ b/media-sound/vkeybd/ChangeLog @@ -1,16 +1,21 @@ # ChangeLog for media-sound/vkeybd -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/vkeybd/ChangeLog,v 1.32 2008/04/14 18:50:37 drac Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/vkeybd/ChangeLog,v 1.33 2009/07/15 17:33:34 ssuominen Exp $ - 14 Apr 2008; Samuli Suominen <drac@gentoo.org> +*vkeybd-0.1.17b-r1 (15 Jul 2009) + + 15 Jul 2009; Samuli Suominen <ssuominen@gentoo.org> + +vkeybd-0.1.17b-r1.ebuild, +files/vkeybd-0.1.17b-lash.patch: + Port from ladcca to lash, thanks to proaudio overlay maintainers. + + 14 Apr 2008; Samuli Suominen <ssuominen@gentoo.org> +files/vkeybd-0.1.17b-desktop-entry.patch, vkeybd-0.1.17b.ebuild: Missing Categories entry in .desktop file. - 10 Apr 2008; Samuli Suominen <drac@gentoo.org> - -files/vkeybd-0.1.15-makefile.patch, -files/vkeybd-0.1.17a-makefile.patch, - -vkeybd-0.1.15-r2.ebuild, -vkeybd-0.1.17a.ebuild, vkeybd-0.1.17b.ebuild: + 10 Apr 2008; Samuli Suominen <ssuominen@gentoo.org> + vkeybd-0.1.17b.ebuild: amd64/x86 stable, because current linux-headers doesn't provide awe_voice.h - wrt #205949, #216928 + wrt #205949 and #216928. *vkeybd-0.1.17b (26 Jan 2008) @@ -18,10 +23,6 @@ +files/vkeybd-0.1.17b-makefile.patch, +vkeybd-0.1.17b.ebuild: version bump, closes bug #205949 - 22 Jul 2007; Samuli Suominen <drac@gentoo.org> -vkeybd-0.1.15-r1.ebuild, - vkeybd-0.1.15-r2.ebuild, vkeybd-0.1.17a.ebuild: - Remove unused version and virtual/x11 references. - 27 Nov 2006; <malc@gentoo.org> vkeybd-0.1.15-r2.ebuild: Stable on amd64 - bug #155639 diff --git a/media-sound/vkeybd/Manifest b/media-sound/vkeybd/Manifest index 9ba4aae50c05..47c7fef8f9ee 100644 --- a/media-sound/vkeybd/Manifest +++ b/media-sound/vkeybd/Manifest @@ -1,6 +1,8 @@ -AUX vkeybd-0.1.17b-desktop-entry.patch 292 RMD160 e7baadfa29fb53072d0d0daa5e9606b331522186 SHA1 8989986500c08eaf35df90dbc396a92f9318d1c5 SHA256 8083e2483dec37c43cea69f3a071c0e6892dc8c96d1b440829eded82037ae8e3 +AUX vkeybd-0.1.17b-desktop-entry.patch 324 RMD160 ed0b57444187f8ff2d57894a953addd827159a74 SHA1 ec60d92c1e522c29f46bd84d287987c89122c486 SHA256 614df425b4baaa5d2845844bec53ec5b17e64f1d75b0dec3868f4df741f4ab6a +AUX vkeybd-0.1.17b-lash.patch 4970 RMD160 ba103841454ec3f8b6f87968a5f0a14a254aaced SHA1 78958a9befbd0b0bcd7219b6ea78ba34da6bbeaf SHA256 9d79a4c30ba4059c0b78597388036d66c56a009e58c220063819f90c7548326f AUX vkeybd-0.1.17b-makefile.patch 573 RMD160 424b83b91cad00a40091d6ac1941ede7152b937f SHA1 5777c3ed7b982d30ee9e36f0592b49f3eb8cbbcd SHA256 575b312f9dabc297f7812e9edc8ff6b2196f2f0fc2a06f24d37d00490d67cc39 DIST vkeybd-0.1.17b.tar.bz2 37195 RMD160 5b1a4b4cba4de120af1e2aa33b6017ccf411cb50 SHA1 09f40b13af2f9b64a49f17228ff48b5afd4d45c0 SHA256 95f4a44bb286ab7c4ddbb19605b6eef07bae76c01b31d37c52ea8eaaf8ebef89 +EBUILD vkeybd-0.1.17b-r1.ebuild 1476 RMD160 4bc8ef227eae342db313d3c69193c495bbc9d22b SHA1 1d0ea3c69a049a5c42f7bd40b89285b2b4949072 SHA256 d40a50c295543e6bb8757ae91ad206f39f634d4f608d8adc16c40772551d5ce4 EBUILD vkeybd-0.1.17b.ebuild 1564 RMD160 7830d0b2950bf6fe89477f4fdaaa7e91ebd24fca SHA1 dfe504907ab1803f44c81e8fcf97406b142eb6ec SHA256 08c45c5f9c53efab813aae02232650bde2609aadbd6a327dcc057b40090f49bf -MISC ChangeLog 4913 RMD160 0f9321c649824b357a7d551c70fed4bf2f252fd3 SHA1 bec9dee2ce26cc9271fee227af1b08c61b31e1e2 SHA256 92736376780b48c2d379735a04800cab69bd3cb10e9905798f3abb351c6a4951 -MISC metadata.xml 221 RMD160 600a2278f8a89283311c5bb10b02d54cebef8ca3 SHA1 aff61004cffd7341912643e1ab44a8df84e14c23 SHA256 3341e7789c5ba08aade2440d5ce6d2937e8432775731033190f11df5f64d085e +MISC ChangeLog 4847 RMD160 3a1d4e9c2b8f3e7856fb74cb8d9c162e05277363 SHA1 765da1ea22ce83db74895d10a20a0e8039de20c8 SHA256 22bca33f04c2d6b3868e2b947990133231461a89fd22bc5ba5269b907c53c97a +MISC metadata.xml 159 RMD160 568344dc99ebe68c2e2d43d268d186757532144d SHA1 3f9589301dbaa4363c56de0f309cf792d8c38b63 SHA256 eb5b8cfa9aed067cd72d6439beac2dd0abdba30248f27e4b337012b493a18369 diff --git a/media-sound/vkeybd/files/vkeybd-0.1.17b-desktop-entry.patch b/media-sound/vkeybd/files/vkeybd-0.1.17b-desktop-entry.patch index 152e6163c512..7b1a7357e5db 100644 --- a/media-sound/vkeybd/files/vkeybd-0.1.17b-desktop-entry.patch +++ b/media-sound/vkeybd/files/vkeybd-0.1.17b-desktop-entry.patch @@ -1,8 +1,10 @@ diff -ur vkeybd.orig/vkeybd.desktop vkeybd/vkeybd.desktop --- vkeybd.orig/vkeybd.desktop 2004-03-03 16:06:30.000000000 +0200 -+++ vkeybd/vkeybd.desktop 2008-04-14 21:47:10.000000000 +0300 -@@ -4,3 +4,4 @@ ++++ vkeybd/vkeybd.desktop 2009-07-15 20:35:38.000000000 +0300 +@@ -3,4 +3,5 @@ + Name=vkeybd Comment=A virtual MIDI keyboard Exec=vkeybd - Icon=vkeybd +-Icon=vkeybd ++Icon=vkeybd_48x48 +Categories=AudioVideo;Audio; diff --git a/media-sound/vkeybd/files/vkeybd-0.1.17b-lash.patch b/media-sound/vkeybd/files/vkeybd-0.1.17b-lash.patch new file mode 100644 index 000000000000..c5c150d981bc --- /dev/null +++ b/media-sound/vkeybd/files/vkeybd-0.1.17b-lash.patch @@ -0,0 +1,168 @@ +diff -ur vkeybd.orig/Makefile vkeybd/Makefile +--- vkeybd.orig/Makefile 2007-08-06 20:22:15.000000000 +0300 ++++ vkeybd/Makefile 2009-07-15 20:23:43.000000000 +0300 +@@ -30,7 +30,7 @@ + USE_AWE = 1 + USE_MIDI = 1 + USE_ALSA = 1 +-USE_LADCCA = 0 ++USE_LASH = 0 + + # + # Tcl/Tk library -- depends on your distribution +@@ -68,14 +68,14 @@ + endif + + # +-# LADCCA stuff ++# LASH stuff + # +-ifeq (1,$(USE_LADCCA)) +-LADCCACFLAGS = $(shell pkg-config --cflags ladcca-1.0) \ +- $(shell pkg-config --exists ladcca-1.0 && echo "-DHAVE_LADCCA" ) +-LADCCALIBS = $(shell pkg-config --libs ladcca-1.0) +-DEVICES += $(LADCCACFLAGS) +-EXTRALIB += $(LADCCALIBS) ++ifeq (1,$(USE_LASH)) ++LASHCFLAGS = $(shell pkg-config --cflags lash-1.0) \ ++ $(shell pkg-config --exists lash-1.0 && echo "-DHAVE_LASH" ) ++LASHLIBS = $(shell pkg-config --libs lash-1.0) ++DEVICES += $(LASHCFLAGS) ++EXTRALIB += $(LASHLIBS) + endif + + #---------------------------------------------------------------- +@@ -88,7 +88,7 @@ + CFLAGS = $(COPTFLAGS) -DVKB_TCLFILE=\"$(VKB_TCLFILE)\" \ + -DVKBLIB_DIR=\"$(VKBLIB_DIR)\"\ + -DVERSION_STR=\"$(VERSION)\"\ +- $(DEVICES) $(XINC) $(TCLINC) $(TKINC) $(LADCCACFLAGS) ++ $(DEVICES) $(XINC) $(TCLINC) $(TKINC) $(LASHCFLAGS) + + TARGETS = vkeybd sftovkb + +diff -ur vkeybd.orig/oper_alsa.c vkeybd/oper_alsa.c +--- vkeybd.orig/oper_alsa.c 2004-03-03 15:58:48.000000000 +0200 ++++ vkeybd/oper_alsa.c 2009-07-15 20:23:44.000000000 +0300 +@@ -78,8 +78,8 @@ + static vkb_optarg_t alsa_opts[] = { + {"addr", "subscriber", "--addr client:port or 'subscriber' : ALSA sequencer destination"}, + {"name", DEFAULT_NAME, "--name string : use the specified string as client/port names"}, +-#ifdef HAVE_LADCCA +- {"ladcca", "no", "--ladcca <yes|no> : support LADCCA (default = no)"}, ++#ifdef HAVE_LASH ++ {"lash", "no", "--lash <yes|no> : support LASH (default = no)"}, + #endif + {NULL}, + }; +@@ -100,8 +100,8 @@ + static int seq_client, seq_port; + static int chan_no; + +-#ifdef HAVE_LADCCA +-static cca_client_t * cca_client = NULL; ++#ifdef HAVE_LASH ++static lash_client_t * lash_client = NULL; + #endif + + /* +@@ -156,25 +156,25 @@ + /* get my client id */ + my_client = snd_seq_client_id(seq_handle); + +- /* tell the ladcca server our client id */ +-#ifdef HAVE_LADCCA +- if ((var = Tcl_GetVar2(ip, "optvar", "ladcca", TCL_GLOBAL_ONLY)) != NULL) { ++ /* tell the lash server our client id */ ++#ifdef HAVE_LASH ++ if ((var = Tcl_GetVar2(ip, "optvar", "lash", TCL_GLOBAL_ONLY)) != NULL) { + if (*var == 'y' || *var == 'Y' || *var == '1') { +- cca_client = cca_init (cca_args, ++ lash_client = lash_init (lash_args, + "vkeybd", +- my_client, CCA_PROTOCOL_VERSION); +- if (cca_enabled (cca_client)) { +- cca_event_t * event; ++ my_client, LASH_PROTOCOL_VERSION); ++ if (lash_enabled (lash_client)) { ++ lash_event_t * event; + unsigned char id[2]; +- event = cca_event_new_with_type (CCA_Alsa_Client_ID); ++ event = lash_event_new_with_type (LASH_Alsa_Client_ID); + id[0] = snd_seq_client_id (seq_handle); + id[1] = '\0'; +- cca_event_set_string (event, id); +- cca_send_event (cca_client, event); ++ lash_event_set_string (event, id); ++ lash_send_event (lash_client, event); + } + } + } +-#endif /* HAVE_LADCCA */ ++#endif /* HAVE_LASH */ + + /* set client info */ + if ((var = Tcl_GetVar2(ip, "optvar", "name", TCL_GLOBAL_ONLY)) != NULL) +@@ -203,8 +203,8 @@ + if (seq_client != SND_SEQ_ADDRESS_SUBSCRIBERS) { + /* subscribe to MIDI port */ + if ( +-#ifdef HAVE_LADCCA +- !cca_enabled (cca_client) && ++#ifdef HAVE_LASH ++ !lash_enabled (lash_client) && + #endif + snd_seq_connect_to(seq_handle, my_port, seq_client, seq_port) < 0) { + vkb_error(ip, "can't subscribe to MIDI port (%d:%d)\n", seq_client, seq_port); +diff -ur vkeybd.orig/vkb.c vkeybd/vkb.c +--- vkeybd.orig/vkb.c 2003-08-19 18:47:59.000000000 +0300 ++++ vkeybd/vkb.c 2009-07-15 20:23:44.000000000 +0300 +@@ -64,8 +64,8 @@ + static int seq_bend = 0; + static vkb_oper_t *oper; + +-#ifdef HAVE_LADCCA +-cca_args_t * cca_args = NULL; ++#ifdef HAVE_LASH ++lash_args_t * lash_args = NULL; + #endif + + /* +@@ -77,9 +77,9 @@ + char **nargv; + int c, nargc; + +-#ifdef HAVE_LADCCA +- cca_args = cca_extract_args(&argc, &argv); +-#endif /* HAVE_LADCCA */ ++#ifdef HAVE_LASH ++ lash_args = lash_extract_args(&argc, &argv); ++#endif /* HAVE_LASH */ + + nargc = argc + 1; + if ((nargv = (char**)malloc(sizeof(char*) * nargc)) == NULL) { +diff -ur vkeybd.orig/vkb.h vkeybd/vkb.h +--- vkeybd.orig/vkb.h 2004-03-03 15:58:48.000000000 +0200 ++++ vkeybd/vkb.h 2009-07-15 20:23:43.000000000 +0300 +@@ -23,8 +23,8 @@ + + #include <tcl.h> + +-#ifdef HAVE_LADCCA +-#include <ladcca/ladcca.h> ++#ifdef HAVE_LASH ++#include <lash/lash.h> + #endif + + #ifndef VKB_TCLFILE +@@ -72,8 +72,8 @@ + void vkb_error(Tcl_Interp *ip, char *fmt, ...); + int vkb_get_int(Tcl_Interp *ip, char *opt, int *ret); + +-#ifdef HAVE_LADCCA +-extern cca_args_t *cca_args; ++#ifdef HAVE_LASH ++extern lash_args_t *lash_args; + #endif + + #endif diff --git a/media-sound/vkeybd/metadata.xml b/media-sound/vkeybd/metadata.xml index ea12fab7b274..ae573a60407f 100644 --- a/media-sound/vkeybd/metadata.xml +++ b/media-sound/vkeybd/metadata.xml @@ -1,8 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<herd>sound</herd> -<maintainer> - <email>sound@gentoo.org</email> - </maintainer> + <herd>sound</herd> </pkgmetadata> diff --git a/media-sound/vkeybd/vkeybd-0.1.17b-r1.ebuild b/media-sound/vkeybd/vkeybd-0.1.17b-r1.ebuild new file mode 100644 index 000000000000..c09dd0a6a4d5 --- /dev/null +++ b/media-sound/vkeybd/vkeybd-0.1.17b-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/vkeybd/vkeybd-0.1.17b-r1.ebuild,v 1.1 2009/07/15 17:33:34 ssuominen Exp $ + +EAPI=2 +inherit toolchain-funcs eutils + +DESCRIPTION="A virtual MIDI keyboard for X" +HOMEPAGE="http://www.alsa-project.org/~iwai/alsa.html" +SRC_URI="http://www.gtlib.gatech.edu/pub/suse/people/tiwai/vkeybd/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~sparc ~x86" +IUSE="alsa lash oss" + +RDEPEND="alsa? ( media-libs/alsa-lib ) + >=dev-lang/tk-8.3 + lash? ( media-sound/lash ) + x11-libs/libX11" +DEPEND="${RDEPEND} + x11-proto/xf86bigfontproto + x11-proto/bigreqsproto + x11-proto/xextproto + x11-proto/xcmiscproto" + +S=${WORKDIR}/${PN} + +pkg_setup() { + TCL_VERSION=`echo 'puts [info tclversion]' | tclsh` + + vkeybconf="PREFIX=/usr" + + if use alsa; then + vkeybconf+=" USE_ALSA=1" + use oss || vkeybconf+=" USE_AWE=0 USE_MIDI=0" + else + vkeybconf+=" USE_ALSA=0 USE_AWE=1 USE_MIDI=1" + fi + + use lash && vkeybconf+=" USE_LASH=1" + + vkeybconf+=" TCL_VERSION=${TCL_VERSION}" +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-makefile.patch \ + "${FILESDIR}"/${P}-desktop-entry.patch \ + "${FILESDIR}"/${P}-lash.patch +} + +src_compile() { + tc-export CC + emake ${vkeybconf} COPTFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed" +} + +src_install() { + emake ${vkeybconf} DESTDIR="${D}" \ + install-all || die "emake install failed" + dodoc ChangeLog README +} |