summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-12-03 19:45:19 +0000
committerV3n3RiX <venerix@redcorelinux.org>2017-12-03 19:45:19 +0000
commitf2f982c439292afc878c351e49d81194a902f5e2 (patch)
tree3b78129b8fa5170038df4d45b591e103d05b45ed
parent2fb8bde3ed5c879808a71a06a6c2d80d76a59487 (diff)
x11-misc/compton : don't install menu entry
-rw-r--r--x11-misc/compton/compton-0.1_beta2-r1.ebuild5
-rw-r--r--x11-misc/compton/files/makefile.patch31
2 files changed, 36 insertions, 0 deletions
diff --git a/x11-misc/compton/compton-0.1_beta2-r1.ebuild b/x11-misc/compton/compton-0.1_beta2-r1.ebuild
index a12b639f..aa2b173d 100644
--- a/x11-misc/compton/compton-0.1_beta2-r1.ebuild
+++ b/x11-misc/compton/compton-0.1_beta2-r1.ebuild
@@ -46,6 +46,11 @@ pkg_setup() {
fi
}
+src_prepare() {
+ default
+ eapply ${FILESDIR}/makefile.patch
+}
+
src_compile() {
emake docs
diff --git a/x11-misc/compton/files/makefile.patch b/x11-misc/compton/files/makefile.patch
new file mode 100644
index 00000000..904ec97b
--- /dev/null
+++ b/x11-misc/compton/files/makefile.patch
@@ -0,0 +1,31 @@
+diff -Nur a/Makefile b/Makefile
+--- a/Makefile 2013-10-21 15:17:01.000000000 +0100
++++ b/Makefile 2017-12-03 19:42:08.110646392 +0000
+@@ -6,7 +6,6 @@
+ PREFIX ?= /usr
+ BINDIR ?= $(PREFIX)/bin
+ MANDIR ?= $(PREFIX)/share/man/man1
+-APPDIR ?= $(PREFIX)/share/applications
+
+ PACKAGES = x11 xcomposite xfixes xdamage xrender xext xrandr
+ LIBS = -lm -lrt
+@@ -126,10 +125,9 @@
+ docs: $(MANPAGES) $(MANPAGES_HTML)
+
+ install: $(BINS) docs
+- @install -d "$(DESTDIR)$(BINDIR)" "$(DESTDIR)$(MANDIR)" "$(DESTDIR)$(APPDIR)"
++ @install -d "$(DESTDIR)$(BINDIR)" "$(DESTDIR)$(MANDIR)"
+ @install -m755 $(BINS) "$(DESTDIR)$(BINDIR)"/
+ @install -m644 $(MANPAGES) "$(DESTDIR)$(MANDIR)"/
+- @install -m644 compton.desktop "$(DESTDIR)$(APPDIR)"/
+ ifneq "$(DOCDIR)" ""
+ @install -d "$(DESTDIR)$(DOCDIR)"
+ @install -m644 README.md compton.sample.conf "$(DESTDIR)$(DOCDIR)"/
+@@ -139,7 +137,6 @@
+ uninstall:
+ @rm -f "$(DESTDIR)$(BINDIR)/compton" "$(DESTDIR)$(BINDIR)/compton-trans"
+ @rm -f $(addprefix "$(DESTDIR)$(MANDIR)"/, compton.1 compton-trans.1)
+- @rm -f "$(DESTDIR)$(APPDIR)/compton.desktop"
+ ifneq "$(DOCDIR)" ""
+ @rm -f $(addprefix "$(DESTDIR)$(DOCDIR)"/, README.md compton.sample.conf cdbus-driver.sh)
+ endif