diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-misc/openbox-menu |
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-misc/openbox-menu')
-rw-r--r-- | x11-misc/openbox-menu/Manifest | 6 | ||||
-rw-r--r-- | x11-misc/openbox-menu/files/openbox-menu-0.5.0-build.patch | 81 | ||||
-rw-r--r-- | x11-misc/openbox-menu/metadata.xml | 20 | ||||
-rw-r--r-- | x11-misc/openbox-menu/openbox-menu-0.8.0.ebuild | 42 |
4 files changed, 149 insertions, 0 deletions
diff --git a/x11-misc/openbox-menu/Manifest b/x11-misc/openbox-menu/Manifest new file mode 100644 index 000000000000..7d6223080deb --- /dev/null +++ b/x11-misc/openbox-menu/Manifest @@ -0,0 +1,6 @@ +AUX openbox-menu-0.5.0-build.patch 2004 SHA256 902e922f82bba5079c951c4b747e307a4004b0ce9f54ae46077664cb5a0c8af6 SHA512 52e425084837c1c198adbbb11b48ea59855ab5396159d45b01f55659bb2f506fd297ce4baebb544028df53063e8e9535129e049b47eff0f25917e81d20b93b97 WHIRLPOOL d92396834b9e64291d3bc6dc331c769f67ba5d1c8216506df6002b7e84560fee7ffca9b566a508690c0ed5aa3138ffaef78922ec4a784675fb6c93c7b0622077 +DIST openbox-menu-0.8.0.tar.bz2 24229 SHA256 14f1e0847c15112e9b48152a35e351500d31e79a514348b054c69f84ab5924c2 SHA512 955a5e16e7be001aec030358d3568aa6a3303d7138d6eb998494cd9ffa77de14ecf4bee163a9d49faf67939c85e303cbae51461f04f7eeaf44167a377c0f352d WHIRLPOOL 4f851b77c306de62eebad7f3c41b49e4ad784dc5ff92f3a079e60e0e420e284f72309556395c6db0014e8f24b1c9b5f3c83256b21d092b7c123f420def711f12 +EBUILD openbox-menu-0.8.0.ebuild 863 SHA256 1c450c7aba3ec30de7315ad84aa1477ed368efffe9f02e5c2873a0b0650c0bd0 SHA512 72e8228e4342dafc2d3f61f0e318c765e3c1687d31abab541fe8fb5c2045f9ac12cd4e7f19d921b1a5a8c98cacbec4b86b25534c58898ae4be9e4df86c354e3e WHIRLPOOL da93c86db8593885ce042395b5ff37a33c924064418be5c5356908b42314e12af684910df02cdf59fa9e98ca65eac943e09203548435de04eb72b4ff230eba9a +MISC ChangeLog 3706 SHA256 378c28513b84a7c21c7428956c79864c4f436af12ceff0c0ee9436277d04e16e SHA512 d46c11a14692d408dad0c28f50516270257a5c4e0af06f5f978259be17a5916e317b02a0929c5a52839bf6793b9c678ffcdfbd103387c11fd40dd2077b1226af WHIRLPOOL de05c9450c75e4b0597e4349308ac80353982cf624474a433bededb58021dd819bff571c6f52770866c5d8397adf0bd8a86cd4c7ad74b5596f9172749cad173e +MISC ChangeLog-2015 2029 SHA256 ffd971b069e775d39e58799595e27b457d6c7890c4f689a285b72a003cba35ee SHA512 edc44a4c6cb09f835a6f612256118124e3f164784850696681aacd3c303a4cca98aa437379d5a519f1f2a8e9672d3ec8c054e90a92d30babee8ae2b5e25fbc44 WHIRLPOOL 1c91403c47199a17da8e75cb863d90e8c48dbc569da9c938efc218f27b3dd54b0c3e366b444ff854151c4e8502773cd4601e31cabfd0c9b055297dd5565c6282 +MISC metadata.xml 674 SHA256 bd3a18126f9c36e90690df6ec69e3f693f375aff015909507c4e808c063c80d4 SHA512 bfc261259c62793a0feb740063a18bfc675d7f13745aedea341c0af7cb7e6673ebfe866d3285ecfa17ed4b00ae97bbeccb442bca506fd2e9f78a7880e1db2ed2 WHIRLPOOL 8fac5ec2b9fbcdae1b9fab49e6c0f3981609fc47ed5c7ab75bcc086d17c29a45faa84f6b5194b64c6465ef1145cb681a6d0a689e6b8c7f454306d4d437bb5b77 diff --git a/x11-misc/openbox-menu/files/openbox-menu-0.5.0-build.patch b/x11-misc/openbox-menu/files/openbox-menu-0.5.0-build.patch new file mode 100644 index 000000000000..5750e982be10 --- /dev/null +++ b/x11-misc/openbox-menu/files/openbox-menu-0.5.0-build.patch @@ -0,0 +1,81 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Wed Aug 21 14:26:38 UTC 2013 +Subject: several QA fixes + +--- a/Makefile ++++ b/Makefile +@@ -1,17 +1,27 @@ +-LIBS= `pkg-config --libs glib-2.0 gtk+-2.0 libmenu-cache` +-CFLAGS+= -g -Wall `pkg-config --cflags glib-2.0 gtk+-2.0 libmenu-cache` +-CC=gcc ++CC ?= gcc ++PKG_CONFIG ?= pkg-config ++ ++CFLAGS ?= -O2 -g ++CFLAGS += -Wall $(shell $(PKG_CONFIG) --cflags glib-2.0 gtk+-2.0 libmenu-cache) ++LIBS += $(shell $(PKG_CONFIG) --libs glib-2.0 gtk+-2.0 libmenu-cache) + #-DG_DISABLE_DEPRECATED + +-# Comment this line if you don't want icons to appear in menu +-CFLAGS+=-DWITH_ICONS +-# Uncomment this line if Openbox can display SVG icons +-# Check SVG support with '$ ldd /usr/bin/openbox | grep svg', librsvg must appear.. +-# CFLAGS+=-DWITH_SVG +- +-prefix= /usr/local +-DESTDIR ?= $(prefix) +-BINDIR= ${DESTDIR}/bin ++# set to 0 to turn off icons in menus ++ICONS=1 ++ ++# set to 0 to turn off svg icons in menus ++SVG_ICONS=1 ++ ++ifeq ($(SVG_ICONS),1) ++CPPFLAGS += -DWITH_SVG ++endif ++ ++ifeq ($(ICONS),1) ++CPPFLAGS += -DWITH_ICONS ++endif ++ ++prefix = /usr ++BINDIR = ${prefix}/bin + + SRC= $(shell ls *.c 2> /dev/null) + OBJ= $(SRC:.c=.o) +@@ -19,26 +29,29 @@ + all: $(OBJ) openbox-menu + + %.o: %.c +- $(CC) $(CFLAGS) -c $< -o $@ ++ $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@ + + openbox-menu: $(OBJ) +- $(CC) $(OBJ) -o openbox-menu $(LDFLAGS) $(LIBS) ++ $(CC) $(CFLAGS) $(OBJ) -o openbox-menu $(LDFLAGS) $(LIBS) + +-.PHONY: clean install doc changelog check ++.PHONY: clean install install-strip doc changelog check + + clean: + @rm -f *.o openbox-menu + @rm -rf doc + + install: ++ @install -Dm 755 openbox-menu "$(DESTDIR)$(BINDIR)/openbox-menu" ++ ++install-strip: + @strip -s openbox-menu +- @install -Dm 755 openbox-menu $(BINDIR)/openbox-menu ++ @install -Dm 755 openbox-menu "$(DESTDIR)$(BINDIR)/openbox-menu" + + doc: + robodoc --src . --doc doc/ --multidoc --index --html --cmode + + check: openbox-menu +- ./openbox-menu > test.xml ++ ./openbox-menu > test.xml + xmllint test.xml + rm test.xml + diff --git a/x11-misc/openbox-menu/metadata.xml b/x11-misc/openbox-menu/metadata.xml new file mode 100644 index 000000000000..1636af995109 --- /dev/null +++ b/x11-misc/openbox-menu/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>desktop-misc@gentoo.org</email> + <name>Gentoo Desktop Miscellaneous Project</name> + </maintainer> + <upstream> + <maintainer status="active"> + <email>fabrice.thiroux@free.fr</email> + <name>Fabrice Thiroux</name> + </maintainer> + <doc lang="en">https://bitbucket.org/fabriceT/openbox-menu</doc> + <remote-id type="bitbucket">fabriceT/openbox-menu</remote-id> + </upstream> + <use> + <flag name="icons">Enable support for icons in menus</flag> + <flag name="svg">Support SVG icons</flag> + </use> +</pkgmetadata> diff --git a/x11-misc/openbox-menu/openbox-menu-0.8.0.ebuild b/x11-misc/openbox-menu/openbox-menu-0.8.0.ebuild new file mode 100644 index 000000000000..e7513e44be67 --- /dev/null +++ b/x11-misc/openbox-menu/openbox-menu-0.8.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="Another dynamic menu generator for Openbox" +HOMEPAGE="http://fabrice.thiroux.free.fr/openbox-menu_en.html" +SRC_URI="https://bitbucket.org/fabriceT/${PN}/downloads/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="+icons svg" +REQUIRED_USE="svg? ( icons )" + +COMMON_DEPEND=" + dev-libs/glib:2 + lxde-base/menu-cache + x11-libs/gtk+:2 +" +RDEPEND=" + ${COMMON_DEPEND} + icons? ( x11-wm/openbox[imlib,svg?] ) + !icons? ( x11-wm/openbox ) +" +DEPEND=" + ${COMMON_DEPEND} + virtual/pkgconfig +" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.5.0-build.patch + epatch_user + tc-export CC PKG_CONFIG +} + +src_compile() { + emake \ + $(usex icons 'ICONS=1' 'ICONS=0') \ + $(usex svg 'SVG_ICONS=1' 'SVG_ICONS=0') +} |