From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: gui-wm/dwl/
Date: Mon, 25 Sep 2023 10:00:15 +0000 (UTC) [thread overview]
Message-ID: <1695582445.33255e52774e58107ef48bd339daa4c650ed2c4d.flow@gentoo> (raw)
commit: 33255e52774e58107ef48bd339daa4c650ed2c4d
Author: Leonardo Hernández Hernández <leohdz172 <AT> proton <DOT> me>
AuthorDate: Sun Sep 24 17:47:24 2023 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sun Sep 24 19:07:25 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=33255e52
gui-wm/dwl: simplify ebuilds
also use the desktop file provided by upstream
Signed-off-by: Leonardo Hernández Hernández <leohdz172 <AT> proton.me>
gui-wm/dwl/dwl-0.4-r1.ebuild | 3 +--
gui-wm/dwl/dwl-9999-r1.ebuild | 29 +++++++++--------------------
gui-wm/dwl/dwl-9999.ebuild | 29 +++++++++--------------------
3 files changed, 19 insertions(+), 42 deletions(-)
diff --git a/gui-wm/dwl/dwl-0.4-r1.ebuild b/gui-wm/dwl/dwl-0.4-r1.ebuild
index e2dc6b7893..f7a7e6fab1 100644
--- a/gui-wm/dwl/dwl-0.4-r1.ebuild
+++ b/gui-wm/dwl/dwl-0.4-r1.ebuild
@@ -5,6 +5,7 @@ EAPI=8
inherit flag-o-matic savedconfig toolchain-funcs
+WLROOTS_SLOT="0/16"
if [[ ${PV} == *9999 ]]; then
EGIT_REPO_URI="https://github.com/djpohly/dwl"
inherit git-r3
@@ -14,7 +15,6 @@ if [[ ${PV} == *9999 ]]; then
case ${PVR} in
9999)
EGIT_BRANCH=main
- WLROOTS_SLOT="0/16"
;;
9999-r1)
EGIT_BRANCH=wlroots-next
@@ -22,7 +22,6 @@ if [[ ${PV} == *9999 ]]; then
;;
esac
else
- WLROOTS_SLOT="0/16"
SRC_URI="https://github.com/djpohly/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
diff --git a/gui-wm/dwl/dwl-9999-r1.ebuild b/gui-wm/dwl/dwl-9999-r1.ebuild
index f201ca4b4d..f47bb7c415 100644
--- a/gui-wm/dwl/dwl-9999-r1.ebuild
+++ b/gui-wm/dwl/dwl-9999-r1.ebuild
@@ -3,18 +3,18 @@
EAPI=8
-inherit flag-o-matic savedconfig toolchain-funcs
+inherit savedconfig toolchain-funcs
-if [[ ${PV} == *9999 ]]; then
+WLROOTS_SLOT="0/16"
+if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="https://github.com/djpohly/dwl"
inherit git-r3
- # 9999-r0: main (latest wlroots release)
+ # 9999-r0: main (latest stable wlroots release)
# 9999-r1: wlroots-next (wlroots-9999)
case ${PVR} in
9999)
EGIT_BRANCH=main
- WLROOTS_SLOT="0/16"
;;
9999-r1)
EGIT_BRANCH=wlroots-next
@@ -22,7 +22,6 @@ if [[ ${PV} == *9999 ]]; then
;;
esac
else
- WLROOTS_SLOT="0/16"
SRC_URI="https://github.com/djpohly/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
@@ -57,24 +56,14 @@ src_prepare() {
default
}
-src_configure() {
- sed -i "s:/local::g" config.mk || die
-
- sed -i "s:pkg-config:$(tc-getPKG_CONFIG):g" config.mk || die
-
- tc-export CC
-
- if use X; then
- append-cppflags '-DXWAYLAND'
- append-libs '-lxcb' '-lxcb-icccm'
- fi
+src_compile() {
+ emake PKG_CONFIG="$(tc-getPKG_CONFIG)" CC="$(tc-getCC)" \
+ XWAYLAND="$(usex X -DXWAYLAND "")" XLIBS="$(usex X "xcb xcb-icccm" "")" dwl
}
src_install() {
- default
-
- insinto /usr/share/wayland-sessions
- doins "${FILESDIR}"/dwl.desktop
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+ dodoc README.md
save_config config.h
}
diff --git a/gui-wm/dwl/dwl-9999.ebuild b/gui-wm/dwl/dwl-9999.ebuild
index e2dc6b7893..2b5d46c788 100644
--- a/gui-wm/dwl/dwl-9999.ebuild
+++ b/gui-wm/dwl/dwl-9999.ebuild
@@ -3,18 +3,18 @@
EAPI=8
-inherit flag-o-matic savedconfig toolchain-funcs
+inherit savedconfig toolchain-funcs
-if [[ ${PV} == *9999 ]]; then
+WLROOTS_SLOT="0/16"
+if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="https://github.com/djpohly/dwl"
inherit git-r3
- # 9999-r0: main (latest wlroots release)
+ # 9999-r0: main (latest stable wlroots release)
# 9999-r1: wlroots-next (wlroots-9999)
case ${PVR} in
9999)
EGIT_BRANCH=main
- WLROOTS_SLOT="0/16"
;;
9999-r1)
EGIT_BRANCH=wlroots-next
@@ -22,7 +22,6 @@ if [[ ${PV} == *9999 ]]; then
;;
esac
else
- WLROOTS_SLOT="0/16"
SRC_URI="https://github.com/djpohly/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
@@ -57,24 +56,14 @@ src_prepare() {
default
}
-src_configure() {
- sed -i "s:/local::g" config.mk || die
-
- sed -i "s:pkg-config:$(tc-getPKG_CONFIG):g" config.mk || die
-
- tc-export CC
-
- if use X; then
- append-cppflags '-DXWAYLAND'
- append-libs '-lxcb' '-lxcb-icccm'
- fi
+src_compile() {
+ emake PKG_CONFIG="$(tc-getPKG_CONFIG)" CC="$(tc-getCC)" \
+ XWAYLAND="$(usex X -DXWAYLAND "")" XLIBS="$(usex X "xcb xcb-icccm" "")" dwl
}
src_install() {
- default
-
- insinto /usr/share/wayland-sessions
- doins "${FILESDIR}"/dwl.desktop
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+ dodoc README.md
save_config config.h
}
next reply other threads:[~2023-09-25 10:00 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-25 10:00 Florian Schmaus [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-09-25 10:00 [gentoo-commits] repo/proj/guru:master commit in: gui-wm/dwl/ Florian Schmaus
2023-09-25 10:00 Florian Schmaus
2023-09-25 10:00 Florian Schmaus
2023-07-24 8:24 Viorel Munteanu
2022-12-31 10:37 Florian Schmaus
2022-12-31 10:37 Florian Schmaus
2022-12-05 9:20 Viorel Munteanu
2022-12-05 9:20 Viorel Munteanu
2022-09-09 20:02 Ronny Gutbrod
2022-09-09 20:02 Ronny Gutbrod
2022-09-09 20:02 Ronny Gutbrod
2022-04-14 13:31 Andrew Ammerlaan
2022-04-12 19:35 Ronny Gutbrod
2022-04-10 12:35 Andrew Ammerlaan
2022-04-10 12:35 Andrew Ammerlaan
2022-04-08 2:43 Ronny Gutbrod
2022-04-06 10:48 Andrew Ammerlaan
2021-02-19 10:14 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1695582445.33255e52774e58107ef48bd339daa4c650ed2c4d.flow@gentoo \
--to=flow@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox