diff options
author | Jeroen Roovers <jer@gentoo.org> | 2011-10-06 20:31:51 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2011-10-06 20:31:51 +0000 |
commit | a01eb341e01d776e66a65efa4415fda415ba7cb1 (patch) | |
tree | 3d8f51fe5f4b0899854991342b3935e57dc903d5 /x11-wm | |
parent | Version bump, block app-misc/lsx and net-dialup/lrzsz (bug #376675). Do not i... (diff) | |
download | gentoo-2-a01eb341e01d776e66a65efa4415fda415ba7cb1.tar.gz gentoo-2-a01eb341e01d776e66a65efa4415fda415ba7cb1.tar.bz2 gentoo-2-a01eb341e01d776e66a65efa4415fda415ba7cb1.zip |
Revision bump (bug #376675).
(Portage version: 2.2.0_alpha62/cvs/Linux x86_64)
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/musca/ChangeLog | 9 | ||||
-rw-r--r-- | x11-wm/musca/files/musca-0.9.24_p20100226-dmenu-4.4.patch | 59 | ||||
-rw-r--r-- | x11-wm/musca/musca-0.9.24_p20100226-r2.ebuild | 59 |
3 files changed, 126 insertions, 1 deletions
diff --git a/x11-wm/musca/ChangeLog b/x11-wm/musca/ChangeLog index 0b3c599898d0..3b3803749bbd 100644 --- a/x11-wm/musca/ChangeLog +++ b/x11-wm/musca/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for x11-wm/musca # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-wm/musca/ChangeLog,v 1.18 2011/07/28 04:55:06 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-wm/musca/ChangeLog,v 1.19 2011/10/06 20:31:51 jer Exp $ + +*musca-0.9.24_p20100226-r2 (06 Oct 2011) + + 06 Oct 2011; Jeroen Roovers <jer@gentoo.org> + +musca-0.9.24_p20100226-r2.ebuild, + +files/musca-0.9.24_p20100226-dmenu-4.4.patch: + Revision bump (bug #376675). 28 Jul 2011; Jeroen Roovers <jer@gentoo.org> -musca-0.9.24_p20100226.ebuild, musca-0.9.24_p20100226-r1.ebuild: diff --git a/x11-wm/musca/files/musca-0.9.24_p20100226-dmenu-4.4.patch b/x11-wm/musca/files/musca-0.9.24_p20100226-dmenu-4.4.patch new file mode 100644 index 000000000000..6e5c31dc8f14 --- /dev/null +++ b/x11-wm/musca/files/musca-0.9.24_p20100226-dmenu-4.4.patch @@ -0,0 +1,59 @@ +https://bugs.archlinux.org/task/25232 +https://bugs.launchpad.net/musca/+bug/816890 + +diff --git a/config.h b/config.h +index f27e122..dcad60f 100644 +--- a/config.h ++++ b/config.h +@@ -39,7 +39,7 @@ setting settings[] = { + // optional startup file of musca commands, one per line + { "startup", mst_str, { .s = ".musca_start" }, ".+" }, + // customize the dmenu command. +- { "dmenu", mst_str, { .s = "sort | dmenu -i -b" }, ".+" }, ++ { "dmenu", mst_str, { .s = "-i -b" }, ".+" }, + // customize the actions of dmenu driven window/group/command menus. by default we + // just spit commands back to musca, but you can wrap or redirect stuff. the $MUSCA + // environment variable is set to argv[0] in setup(). -i means execute stdin. +diff --git a/musca.c b/musca.c +index 7f1d6a3..794bb9c 100644 +--- a/musca.c ++++ b/musca.c +@@ -2162,8 +2162,16 @@ void launch(char *cmd) + } + void menu(char *cmd, char *after) + { ++ // we keep original behaviour by sorting + char *tmp = allocate(strlen(cmd)+strlen(after)+BLOCK); +- sprintf(tmp, "%s | %s | %s", cmd, settings[ms_dmenu].s, after); ++ sprintf(tmp, "%s | sort | dmenu %s | %s", cmd, settings[ms_dmenu].s, after); ++ printf("%s\n", tmp); ++ launch(tmp); free(tmp); ++} ++void menufix(char *cmd, char*after) ++{ ++ char *tmp = allocate(strlen(cmd)+strlen(after)+BLOCK); ++ sprintf(tmp, "%s %s | %s",cmd, settings[ms_dmenu].s, after); + printf("%s\n", tmp); + launch(tmp); free(tmp); + } +@@ -2631,7 +2639,7 @@ char* com_command(char *cmd, regmatch_t *subs) + } + char* com_shell(char *cmd, regmatch_t *subs) + { +- menu("dmenu_path", settings[ms_run_shell_command].s); ++ menufix("dmenu_run", settings[ms_run_shell_command].s); + return NULL; + } + char* com_alias(char *cmd, regmatch_t *subs) +diff --git a/musca_proto.h b/musca_proto.h +index dc14d75..e25c1ea 100644 +--- a/musca_proto.h ++++ b/musca_proto.h +@@ -145,6 +145,7 @@ void head_focus(head *h); + void head_next(); + void launch(char *cmd); + void menu(char *cmd, char *after); ++void menufix(char *cmd, char *after); + void menu_wrapper(char *cmd, char *after); + void shutdown(); + dcell parse_size(char *cmd, regmatch_t *subs, ucell index, ucell limit); diff --git a/x11-wm/musca/musca-0.9.24_p20100226-r2.ebuild b/x11-wm/musca/musca-0.9.24_p20100226-r2.ebuild new file mode 100644 index 000000000000..1b42b3e6ff6a --- /dev/null +++ b/x11-wm/musca/musca-0.9.24_p20100226-r2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-wm/musca/musca-0.9.24_p20100226-r2.ebuild,v 1.1 2011/10/06 20:31:51 jer Exp $ + +EAPI="4" + +inherit eutils savedconfig toolchain-funcs + +DESCRIPTION="A simple dynamic window manager for X, with features nicked from +ratpoison and dwm" +HOMEPAGE="http://aerosuidae.net/musca.html" +SRC_URI="mirror://gentoo/${P}.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="apis xlisten" + +COMMON="x11-libs/libX11" +DEPEND="${COMMON} + sys-apps/sed" +RDEPEND=" + ${COMMON} + >=x11-misc/dmenu-4.4 + apis? ( x11-misc/xbindkeys ) +" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-0.9.24-make.patch \ + "${FILESDIR}"/${PN}-0.9.24_p20100226-dmenu-4.4.patch + + local i + for i in apis xlisten; do + if ! use ${i}; then + sed -e "s|${i}||g" -i Makefile || die + fi + done + + restore_config config.h + tc-export CC +} + +src_install() { + dobin musca + + local i + for i in xlisten apis; do + if use ${i}; then + dobin ${i} + fi + done + doman musca.1 + + exeinto /etc/X11/Sessions + newexe "${FILESDIR}"/${PN}.xsession musca + + save_config config.h +} |