Skip to content

Commit

Permalink
media-gfx/scrot: Update live ebuild
Browse files Browse the repository at this point in the history
- Add libXcomposite
- Remove libXcursor[0]

[0] resurrecting-open-source-projects/scrot#47

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Jeroen Roovers <[email protected]>
  • Loading branch information
Jeroen Roovers committed Jun 29, 2020
1 parent 6139963 commit 07340c7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
18 changes: 18 additions & 0 deletions media-gfx/scrot/files/scrot-9999-Xcursor.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -34,4 +34,4 @@
bin_PROGRAMS = scrot
scrot_SOURCES = main.c getopt.c getopt1.c getopt.h scrot.h \
options.c options.h debug.h imlib.c structs.h note.c note.h
-scrot_LDADD = -lX11 -lXfixes -lXcursor -lXcomposite @GIBLIB_LIBS@
+scrot_LDADD = -lX11 -lXfixes -lXcomposite @GIBLIB_LIBS@
--- a/src/scrot.h
+++ b/src/scrot.h
@@ -40,7 +40,6 @@
#include <X11/cursorfont.h>
#include <X11/extensions/Xfixes.h>
#include <X11/extensions/Xcomposite.h>
-#include <X11/Xcursor/Xcursor.h>

#include <stdio.h>
#include <string.h>
5 changes: 4 additions & 1 deletion media-gfx/scrot/scrot-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ KEYWORDS=""
RDEPEND="
>=media-libs/giblib-1.2.3
x11-libs/libX11
x11-libs/libXcursor
x11-libs/libXcomposite
x11-libs/libXfixes
|| (
media-libs/imlib2[gif]
Expand All @@ -31,6 +31,9 @@ DEPEND="
DOCS=(
AUTHORS ChangeLog CONTRIBUTING.md README.md TODO
)
PATCHES=(
"${FILESDIR}"/${PN}-9999-Xcursor.patch
)

src_prepare() {
sed -i -e 's#-g -O3##g' src/Makefile.am || die
Expand Down

0 comments on commit 07340c7

Please sign in to comment.