Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gui-apps/wbg: Improve USE flags #226

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions gui-apps/wbg/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
<name>Leonardo Hernández Hernández</name>
<email>[email protected]</email>
</maintainer>
<use>
<flag name="system-nanosvg">Use system-installed nanosvg instead of bundled version</flag>
</use>
<longdescription lang="en">
Super simple wallpaper application for Wayland compositors implementing the layer-shell protocol.
Wbg takes a single command line argument: a path to an image file. This image is displayed scaled-to-fit on all monitors.
Expand Down
2 changes: 1 addition & 1 deletion gui-apps/wbg/wbg-1.0.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

IUSE="png jpeg"
IUSE="+png jpeg"
REQUIRED_USE="|| ( png jpeg )"

DEPEND="
Expand Down
2 changes: 1 addition & 1 deletion gui-apps/wbg/wbg-1.1.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

IUSE="png jpeg webp"
IUSE="+png jpeg webp"
REQUIRED_USE="|| ( png jpeg webp )"

DEPEND="
Expand Down
2 changes: 1 addition & 1 deletion gui-apps/wbg/wbg-1.2.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ HOMEPAGE="https://codeberg.org/dnkl/wbg"
# ZLIB for nanosvg
LICENSE="MIT ZLIB"
SLOT="0"
IUSE="png jpeg webp"
IUSE="+png jpeg webp"

RDEPEND="
dev-libs/wayland
Expand Down
22 changes: 11 additions & 11 deletions gui-apps/wbg/wbg-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,22 @@

EAPI=8

inherit meson
inherit meson git-r3

if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="https://codeberg.org/dnkl/wbg.git"
inherit git-r3
else
SRC_URI="https://codeberg.org/dnkl/wbg/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${PN}"
fi
EGIT_REPO_URI="https://codeberg.org/dnkl/wbg.git"

DESCRIPTION="Super simple wallpaper application"
HOMEPAGE="https://codeberg.org/dnkl/wbg"

# ZLIB for nanosvg
LICENSE="MIT ZLIB"
SLOT="0"
IUSE="jpeg jpegxl png webp"
IUSE="jpeg jpegxl png webp +svg system-nanosvg"

REQUIRED_USE="
|| ( jpeg jpegxl png webp svg )
system-nanosvg? ( svg )
"

RDEPEND="
dev-libs/wayland
Expand All @@ -29,6 +27,7 @@ RDEPEND="
jpegxl? ( media-libs/libjxl:= )
png? ( media-libs/libpng:= )
webp? ( media-libs/libwebp:= )
system-nanosvg? ( media-libs/nanosvg:= )
"
DEPEND="
${RDEPEND}
Expand All @@ -46,7 +45,8 @@ src_configure() {
$(meson_feature jpegxl jxl)
$(meson_feature png)
$(meson_feature webp)
-Dsvg=true
$(meson_feature system-nanosvg)
$(meson_use svg)
)

meson_src_configure
Expand Down