summaryrefslogtreecommitdiff
path: root/x11-misc/dclock
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/dclock')
-rw-r--r--x11-misc/dclock/Manifest2
-rw-r--r--x11-misc/dclock/dclock-2.2.2_p12.ebuild76
2 files changed, 78 insertions, 0 deletions
diff --git a/x11-misc/dclock/Manifest b/x11-misc/dclock/Manifest
index 77813f4d3e3c..24ee60331497 100644
--- a/x11-misc/dclock/Manifest
+++ b/x11-misc/dclock/Manifest
@@ -1,5 +1,7 @@
AUX dclock-2.2.2_p4-include.patch 208 BLAKE2B 36fbc6fc69aa0f181631bc8c9646daa74f9f055821434623c860e68106b794a0e5285fddf23facf04dbe5ef10a4d67927cc51fad2cba25c9e31054b4d22dc159 SHA512 13ba3f68b18396a6c85f3354a42ea1aab204cb8b3753261117eb17b1bbc2f449cc44c6d70ebfee708863986c294e9c7134348e23c14a14cf4074705ec0bfc39b
+DIST dclock_2.2.2-12.debian.tar.xz 16112 BLAKE2B 3da6a75834791cbba71d84c8d46d65b18db6a9aa97a085d984b598c8db41fe507965390568377a9167823d0b3856165e58115aa74b05da35fd6432b44ea877e9 SHA512 c6c468a378e421fb9ef2c6e84db991644888f8d2d9afe220142ea26914423387d3aed335b43fa69b38501c3d713d5540bb2efc2e52dd0db1fa1cd3d9c00c1531
DIST dclock_2.2.2-9.debian.tar.xz 15260 BLAKE2B dab41f4fe79d2ce6ef4effb466c3923c77a94bfaf4b6ca1dde5bd9b92e0d9ff9a5d89dd9b569f831e107bb62de691e24661609b61af84d1a64958de34304f9be SHA512 025d1d228930adb6e2b13226188b6c3d37aef59786f23826f301c7b22dabba5cfc24f76347fe2f199c239daea968cd043293bd60524110235855cb77c9e4d1f0
DIST dclock_2.2.2.orig.tar.gz 63583 BLAKE2B b1208439e3a689ff1e00cbdbfa7e3a559b7ec7705ab0834cf350d1ba1e3dcd01d4746e90999f6215cfa9e101a4bd8cf42ff324a307c792028479077152b5414b SHA512 c43ba031fd0d9ba2bc7e8fe9becc73591bfc47cd4ca931df03fa55207cfb148e24e5d702a7de5af8b67e188c561eae2fb7da14162f6a982d0abbb3251c32372c
+EBUILD dclock-2.2.2_p12.ebuild 1348 BLAKE2B 4bd8d31c1c779aa0a639ae7f34e3b0c911d89b1a9398fa3d904764919968f2f866a0ea18a4f05b4c9f2bba0ec900a3faf202bb07025e9748c1d73bf47ab3304d SHA512 79c56eb76b42930b29cf76f08e580b50c151b6af0e70295940a32a795e90638764ea27fc76db0acf5de98496331a5d1016febbaebfddba84a34239f8cf484be6
EBUILD dclock-2.2.2_p9.ebuild 1308 BLAKE2B 9a1ee50a0e05741ef300d13ec264101e6da76a0ed97d2049e37f66d3eda6f3a7238aa6581d434859dacffdbf016c1055fc0570980888ce4d6e415d27f8c09952 SHA512 cfc3a68312f6273ddcbe1d61dd8c5d890674b68b2f9ba6c1ef0bcfa1cab8cbf789252e8d9a2c120079710c7c5903b45c2842c6a45a0f48e97ab6d61906e4ddfe
MISC metadata.xml 318 BLAKE2B e2fde4c35c72439790ea9e4c0e403f1a0666a7ebc8e9f350b29138d01c171765fac8cd6adee54667bbc19921e6fc976a427c3429464769a02d9e8dc8c83a8925 SHA512 7d56445a5c7fffdc1104633cdd30eafa17588079b8a1f4cb226984b1aad4e41fe84320608681143dc01c5f1ac5f104cf0717e8183164031644220f9c61086a3b
diff --git a/x11-misc/dclock/dclock-2.2.2_p12.ebuild b/x11-misc/dclock/dclock-2.2.2_p12.ebuild
new file mode 100644
index 000000000000..23c19ae370cf
--- /dev/null
+++ b/x11-misc/dclock/dclock-2.2.2_p12.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Digital clock for the X window system"
+HOMEPAGE="https://packages.qa.debian.org/d/dclock.html"
+SRC_URI="
+ mirror://debian/pool/main/d/${PN}/${PN}_${PV/_p*/}.orig.tar.gz
+ mirror://debian/pool/main/d/${PN}/${PN}_${PV/_p/-}.debian.tar.xz
+"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="xft"
+
+RDEPEND="
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXt
+ xft? (
+ media-libs/freetype
+ x11-libs/libXft
+ )
+"
+DEPEND="
+ ${RDEPEND}
+"
+BDEPEND="
+ app-text/rman
+ x11-misc/imake
+ xft? ( virtual/pkgconfig )
+"
+S=${WORKDIR}/${P/_p*/}
+PATCHES=(
+ "${WORKDIR}"/debian/patches
+)
+
+src_prepare() {
+ default
+ sed -i -e '/CDEBUGFLAGS/d' Imakefile || die
+}
+
+src_configure() {
+ if use xft; then
+ append-cppflags \
+ -DXFT_SUPPORT \
+ $( $(tc-getPKG_CONFIG) --cflags freetype2 )
+ else
+ append-cppflags -UXFT_SUPPORT
+ sed -i -e '/EXTRA_LIBRARIES/s|^|#|g' Imakefile || die
+ fi
+
+ xmkmf || die
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS}" \
+ CPPFLAGS="${CPPFLAGS}" \
+ EXTRA_LDOPTIONS="${LDFLAGS}"
+}
+
+src_install() {
+ default
+ emake DESTDIR="${D}" install.man
+
+ insinto /usr/share/sounds
+ doins sounds/*
+
+ insinto /usr/share/X11/app-defaults
+ newins Dclock.ad DClock
+}