Skip to content

Commit

Permalink
app-containers/conmon: Minimize Makefile patch
Browse files Browse the repository at this point in the history
Signed-off-by: Zac Medico <[email protected]>
  • Loading branch information
zmedico committed Sep 26, 2023
1 parent dea7603 commit 68f423b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 47 deletions.
3 changes: 2 additions & 1 deletion app-containers/conmon/conmon-2.1.8.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RDEPEND="dev-libs/glib:=
DEPEND="${RDEPEND}"
BDEPEND="dev-go/go-md2man"
PATCHES=(
"${FILESDIR}/001-conmon-basic.patch"
"${FILESDIR}/conmon-2.1.8-Makefile.patch"
)

src_prepare() {
Expand All @@ -48,6 +48,7 @@ src_prepare() {

src_compile() {
tc-export CC PKG_CONFIG
export PREFIX=${EPREFIX}/usr GOMD2MAN=go-md2man
if [[ ${PV} == *9999* ]]; then
default
else
Expand Down
3 changes: 2 additions & 1 deletion app-containers/conmon/conmon-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RDEPEND="dev-libs/glib:=
DEPEND="${RDEPEND}"
BDEPEND="dev-go/go-md2man"
PATCHES=(
"${FILESDIR}/001-conmon-basic.patch"
"${FILESDIR}/conmon-2.1.8-Makefile.patch"
)

src_prepare() {
Expand All @@ -48,6 +48,7 @@ src_prepare() {

src_compile() {
tc-export CC PKG_CONFIG
export PREFIX=${EPREFIX}/usr GOMD2MAN=go-md2man
if [[ ${PV} == *9999* ]]; then
default
else
Expand Down
45 changes: 0 additions & 45 deletions app-containers/conmon/files/001-conmon-basic.patch

This file was deleted.

15 changes: 15 additions & 0 deletions app-containers/conmon/files/conmon-2.1.8-Makefile.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--- a/Makefile
+++ b/Makefile
@@ -41,4 +41 @@
-ifeq ($(shell $(PKG_CONFIG) --exists libsystemd-journal && echo "0"), 0)
- override LIBS += $(shell $(PKG_CONFIG) --libs libsystemd-journal)
- override CFLAGS += $(shell $(PKG_CONFIG) --cflags libsystemd-journal) -D USE_JOURNALD=1
-else ifeq ($(shell $(PKG_CONFIG) --exists libsystemd && echo "0"), 0)
+ifeq ($(shell echo "0"), 0)
@@ -127 +123,0 @@
- $(MAKE) -C tools
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -4 +4 @@
-GOMD2MAN = ../tools/build/go-md2man
+GOMD2MAN ?= ../tools/build/go-md2man

0 comments on commit 68f423b

Please sign in to comment.