diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /x11-plugins/asclock | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'x11-plugins/asclock')
-rw-r--r-- | x11-plugins/asclock/Manifest | 2 | ||||
-rw-r--r-- | x11-plugins/asclock/asclock-2.0.12-r4.ebuild | 74 | ||||
-rw-r--r-- | x11-plugins/asclock/files/asclock-2.0.12-fix-implicit-func-decl.patch | 13 |
3 files changed, 89 insertions, 0 deletions
diff --git a/x11-plugins/asclock/Manifest b/x11-plugins/asclock/Manifest index 59b16ce08503..5d45c4cf8e44 100644 --- a/x11-plugins/asclock/Manifest +++ b/x11-plugins/asclock/Manifest @@ -1,5 +1,7 @@ +AUX asclock-2.0.12-fix-implicit-func-decl.patch 286 BLAKE2B 8e3b43e435182ad92547591336b1866f150fa53918f5c65b1f22d40ca6291d11ab530c19ed56af27e32ec269975dae6c738760db658ea31826e1686cd4604eb2 SHA512 069278ba350eda39b5d633462a9d7536c716331501b8e992295c9233559d101788b30da1d956d78cd90bb663485717d6691a20df45442b68c79e742f3cc8b8b5 AUX asclock-2.0.12-fno-common.patch 421 BLAKE2B 65befa6f59c55e7fcc4bef4f7370d48bee7d3ba1c219396eb9b767302f7b69284d5e64e0bf392cc981de06fb8b2fe629b346699fbe3081b777582538314fb2c2 SHA512 1244ed512b76c55ad9c37cd9a50321878e2d7ebe02f8958dc6548b2aaece8bf2b4abf93783bb2e6dc9947fea81b0a792fd8e2f9763eeffe85474b49b0dc6c50e AUX asclock-gcc41.patch 1528 BLAKE2B ec7f3e2361f06bd995128234fc60ceb9e3998054912f78a954eb05a04f376d231a59eb6e9d583940694f01388f81b0f0c2e33a098a2032d5e3917e629421ab57 SHA512 73d5edb1c3b1a287c9f00ad35491994f5d51bf0d5df2d81c3d428da0ed53eb4a73c0da1fe979d7479df103164e440b8a3472e18306c9fc5f85fd313d29f34b0d DIST asclock-2.0.12.tar.gz 111858 BLAKE2B acc5e25c268f013c30e7c35e5f162246839b6ffdd049e041e47bd9eee5a9fd6f62b27bb5f8eec157a2b19f6a930f9084531d3c1a7e9cd19cdfdd4ba33005f952 SHA512 408c0cbd7d8c19e8cda450ed1e3e0857dd908768557221b5707bda4eaa56170899bb3ecbe1d9f487ad7cbe7ebe36019cfe7a19f58dae2b918fb1179d67a8bb0e EBUILD asclock-2.0.12-r3.ebuild 1515 BLAKE2B f232f19e4b2cabc6766bf6e531fb97066a539f63f9c1f548933cdf940f14e607dc9c6a11de52a0f9566c4b1e1564a67c4a207f12109e10190b6d5f0c88fa82db SHA512 b8d55247c2f51b2c4608fa3fff8cd00f2e0826b3d879921bab640d3899c94ded609642d97e5c1da54c343f0624cea49b6d1d25ee2e59cbcc18d9c27e263c5b25 +EBUILD asclock-2.0.12-r4.ebuild 1540 BLAKE2B f2159e088bf6c6e2616ad84498dfad4e0cdcfeb23fd30acb329a7a3195d9aee3eaaeb83d8c276fd56d7d56c1e2e1aa01004a5836604b6b32bcf1228de1ffebcb SHA512 873038b6ff08184b5a5f4a8021a0ab201e958bbd0d373eafdbccbdd40f2737d722104ca23ec07129ee9f6b9d7017c2472d04eb0cbea1108c93c2909bdeca06e5 MISC metadata.xml 167 BLAKE2B 868e3b584722eaacf68273db062bb773d8c7e5d7ab2b81ca7e8397643bf7cc106c3a1033594401c99c54f667bb45d6b73f9048fc335580bbd44b4589ad26a832 SHA512 30caadd1496c3b9969136038239a1d8e01f236726b4022c2d7e19ca7575f25f735e556835e581afbf44fbd3e4104c40f2b5ef5fa70118d75c881fdf871962d0a diff --git a/x11-plugins/asclock/asclock-2.0.12-r4.ebuild b/x11-plugins/asclock/asclock-2.0.12-r4.ebuild new file mode 100644 index 000000000000..4d5b8555b83d --- /dev/null +++ b/x11-plugins/asclock/asclock-2.0.12-r4.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edo toolchain-funcs + +DESCRIPTION="Clock applet for AfterStep" +HOMEPAGE="http://tigr.net/afterstep/applets/" +SRC_URI="http://www.tigr.net/afterstep/download/asclock/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~mips ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-solaris" + +DEPEND="x11-libs/libXpm" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-gcc41.patch + "${FILESDIR}"/${P}-fno-common.patch + "${FILESDIR}"/${P}-fix-implicit-func-decl.patch +) + +src_prepare() { + default + + ln -s themes/classic default_theme || die +} + +src_configure() { + :; +} + +src_compile() { + local x + + # Will break Solaris + [[ ${CHOST} == *-linux-gnu ]] && CFLAGS="${CFLAGS} \ + -Dlinux \ + -D_POSIX_C_SOURCE=199309L \ + -D_POSIX_SOURCE \ + -D_XOPEN_SOURCE" + + for x in asclock parser symbols config; do + edo $(tc-getCC) \ + ${CPPFLAGS} ${CFLAGS} ${ASFLAGS} \ + -I"${EPREFIX}"/usr/include \ + -D_BSD_SOURCE \ + -D_SVID_SOURCE \ + -DFUNCPROTO=15 \ + -DNARROWPROTO \ + -c -o ${x}.o ${x}.c + done + + edo $(tc-getCC) \ + ${LDFLAGS} \ + -o asclock \ + asclock.o parser.o symbols.o config.o \ + -L"${ESYSROOT}/usr/$(get_libdir)" \ + -L"${ESYSROOT}"/usr/lib/X11 \ + -lXpm -lXext -lX11 +} + +src_install() { + dobin asclock + local themesdir="/usr/share/${PN}/themes" + insinto ${themesdir} + doins -r themes/* + dodoc README README.THEMES TODO + cd "${ED}"/${themesdir} || die + rm Freeamp/Makefile{,.*} || die + ln -s classic default_theme || die +} diff --git a/x11-plugins/asclock/files/asclock-2.0.12-fix-implicit-func-decl.patch b/x11-plugins/asclock/files/asclock-2.0.12-fix-implicit-func-decl.patch new file mode 100644 index 000000000000..b0379a396129 --- /dev/null +++ b/x11-plugins/asclock/files/asclock-2.0.12-fix-implicit-func-decl.patch @@ -0,0 +1,13 @@ +diff --git a/asclock.h b/asclock.h +index 7580df8..ec6883b 100644 +--- a/asclock.h ++++ b/asclock.h +@@ -137,6 +137,8 @@ extern char *hour_map; + extern char *min_map; + extern char *sec_map; + ++int mytime(); ++ + /********* symbols.c ***************/ + void init_symbols(); + void postconfig(); |