From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4692F13835C for ; Thu, 25 Feb 2021 09:16:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6BAAEE0929; Thu, 25 Feb 2021 09:16:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 49B59E0893 for ; Thu, 25 Feb 2021 09:16:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 28F4E340D8A for ; Thu, 25 Feb 2021 09:16:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8F2C9532 for ; Thu, 25 Feb 2021 09:15:58 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1614244508.8341f84f368eb4942e4021cefb92912432b89a64.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/dzen/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-misc/dzen/Manifest x11-misc/dzen/dzen-0.9.5_p2.ebuild X-VCS-Directories: x11-misc/dzen/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 8341f84f368eb4942e4021cefb92912432b89a64 X-VCS-Branch: master Date: Thu, 25 Feb 2021 09:15:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 20828500-53cc-4c49-840a-f0084dd5d880 X-Archives-Hash: 83dc6079f7f2973cd102bdb9d7c23016 commit: 8341f84f368eb4942e4021cefb92912432b89a64 Author: Ionen Wolkens gmail com> AuthorDate: Thu Feb 25 09:15:08 2021 +0000 Commit: David Seifert gentoo org> CommitDate: Thu Feb 25 09:15:08 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8341f84f x11-misc/dzen: near-complete rework Replaced large 8kB Makefile patch by smaller (not pretty) ebuild workarounds leaving things up to pkg-config. This notably fix lld, prefix, and crossdev builds. Removed unused-but-set patch, its only purpose was to silence build-time warnings. Removed USE=minimal and disabled by default. Gadgets are small, quick to build, and with no extra deps. Removed USE=xft and enabled by default (like upstream). Alternate code path is unreliable with locales and there's little reasons to support it (doubtful will be brought back, so removing rather than forcing). New tarball to drop obsolete SRC_URI. Closes: https://bugs.gentoo.org/477656 Closes: https://bugs.gentoo.org/732434 Package-Manager: Portage-3.0.15, Repoman-3.0.2 Signed-off-by: Ionen Wolkens gmail.com> Signed-off-by: David Seifert gentoo.org> x11-misc/dzen/Manifest | 1 + x11-misc/dzen/dzen-0.9.5_p2.ebuild | 63 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/x11-misc/dzen/Manifest b/x11-misc/dzen/Manifest index 4f53d592b69..1b47872530b 100644 --- a/x11-misc/dzen/Manifest +++ b/x11-misc/dzen/Manifest @@ -1,2 +1,3 @@ DIST dzen-0.9.5.tar.gz 38167 BLAKE2B 92297cceca2215d812aa4536bd7421ab992a372667ca832de70a2bf43faea4b5e7beb147a454d7ced5be4e53085f4eaf15d752888ee019d799cd3bb8fcbdb6ba SHA512 ed4eb5d657d8f3822d8fbf224da5c2d415852c340959840051ec9cfc63f90361e09b9d36cb8221cf046ae66af02b9fab67f4f16c834c5895e801d452e4f8a916 DIST dzen-0.9.5_p1.tar.gz 38178 BLAKE2B 9ec81747d6eec9b7cca58b11096e00548cdca7ba21a179599979cf9b22ff84100d266d98e7a3e419960a56fee788ae96158650884a1b1322def6a98a70d6683b SHA512 239acfcacbc871ded5755ee0d5cca3185fcd93142bcf81552974f2ffc19d9f5ebdc02956108931f58b35c68ac57ec6e748bdb9cdbf7791ec6e224ef270bda300 +DIST dzen-0.9.5_p2.tar.gz 38181 BLAKE2B 0e34228c3795864a1b6ac5a3ac9d0ab4a1b90e065a649caa34d704951007bb1239db920f7ed3e35303f614c6572b6232768d59302b23edab0c11793574fcde3d SHA512 e750ab9c62dad311bf478d79c15ffdc1ef108fe2c3ed5df82316d879aad000bee785d304048f5daae237468f6fe018f14fc05d0114d68d873f766dbf1dfebbc9 diff --git a/x11-misc/dzen/dzen-0.9.5_p2.ebuild b/x11-misc/dzen/dzen-0.9.5_p2.ebuild new file mode 100644 index 00000000000..b2dadc4502d --- /dev/null +++ b/x11-misc/dzen/dzen-0.9.5_p2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +COMMIT_HASH="488ab66019f475e35e067646621827c18a879ba1" + +DESCRIPTION="General purpose messaging, notification, and menu utility" +HOMEPAGE="https://github.com/robm/dzen" +SRC_URI="https://github.com/robm/dzen/archive/${COMMIT_HASH}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT_HASH}" + +LICENSE="MIT" +KEYWORDS="~amd64 ~x86" +SLOT="2" +IUSE="xinerama xpm" + +RDEPEND=" + x11-libs/libX11 + x11-libs/libXft + xinerama? ( x11-libs/libXinerama ) + xpm? ( x11-libs/libXpm )" +DEPEND=" + ${RDEPEND} + x11-base/xorg-proto" +BDEPEND=" + virtual/pkgconfig" + +src_prepare() { + default + sed -i '/strip/d; /@echo/d; s/\t@/\t/; s/-L.*/$(X11LIBS)/' \ + Makefile gadgets/Makefile || die +} + +src_compile() { + local cflags="${CFLAGS} $($(tc-getPKG_CONFIG) --cflags x11)" + local libs="$($(tc-getPKG_CONFIG) --libs x11)" + + emake -C gadgets \ + CC="$(tc-getCC)" CFLAGS="${cflags}" \ + LDFLAGS="${LDFLAGS}" X11LIBS="${libs}" + + local flag + # xft always-enabled wrt bug #477656 + for flag in xft $(usev xinerama) $(usev xpm); do + cflags+=" $($(tc-getPKG_CONFIG) --cflags ${flag}) -DDZEN_${flag^^}" + libs+=" $($(tc-getPKG_CONFIG) --libs ${flag})" + done + + cflags+=" -DVERSION='\"$(ver_cut 1-3)\"'" + + emake CC="$(tc-getCC)" CFLAGS="${cflags}" LIBS="${LDFLAGS} ${libs}" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" -C gadgets install + dobin gadgets/*.sh + dodoc gadgets/README* + einstalldocs +}