Skip to content

Commit

Permalink
x11-plugins/wmmenu: EAPI7, improve ebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
mm1ke authored and voyageur committed Aug 2, 2018
1 parent 0196b7f commit a1f690a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x11-plugins/wmmenu/files/wmmenu-1.3-Makefile.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- Makefile.orig 2015-04-17 13:43:08.122972280 +0200
+++ Makefile 2015-04-17 13:43:11.569975854 +0200
--- a/Makefile 2015-04-17 13:43:08.122972280 +0200
+++ b/Makefile 2015-04-17 13:43:11.569975854 +0200
@@ -14,12 +14,12 @@
PIXBUF_LIB := -rdynamic -L$(shell $(PIXBUF_CFG) --variable=prefix)/lib -lgdk_pixbuf_xlib-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0
endif
Expand Down
38 changes: 38 additions & 0 deletions x11-plugins/wmmenu/wmmenu-1.3-r2.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=7
inherit toolchain-funcs

DESCRIPTION="a popup menu of icons like in AfterStep, as a dockapp"
HOMEPAGE="https://www.dockapps.net/wmmenu"
SRC_URI="https://dev.gentoo.org/~voyageur/distfiles/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND="x11-libs/gdk-pixbuf[X]
>=x11-libs/libdockapp-0.7:="
DEPEND="${RDEPEND}"

S="${WORKDIR}/dockapps"

PATCHES=( "${FILESDIR}"/${P}-Makefile.patch )

DOCS=( README TODO example/{apps,defaults,extract_icon_back} )

src_prepare() {
default
sed -e 's#<dockapp.h>#<libdockapp/dockapp.h>#' -i *.c || die
}

src_compile() {
emake CC="$(tc-getCC)"
}

src_install() {
dobin wmmenu
doman wmmenu.1
einstalldocs
}

0 comments on commit a1f690a

Please sign in to comment.