diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-plugins/asclock |
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-plugins/asclock')
-rw-r--r-- | x11-plugins/asclock/Manifest | 6 | ||||
-rw-r--r-- | x11-plugins/asclock/asclock-2.0.12-r1.ebuild | 64 | ||||
-rw-r--r-- | x11-plugins/asclock/files/asclock-gcc41.patch | 44 | ||||
-rw-r--r-- | x11-plugins/asclock/metadata.xml | 5 |
4 files changed, 119 insertions, 0 deletions
diff --git a/x11-plugins/asclock/Manifest b/x11-plugins/asclock/Manifest new file mode 100644 index 000000000000..c811509d5128 --- /dev/null +++ b/x11-plugins/asclock/Manifest @@ -0,0 +1,6 @@ +AUX asclock-gcc41.patch 1528 SHA256 e5a7889a089da8a9c94dfc74f6bd40ac4cdcf82e59db1b4b356915cd96b66355 SHA512 73d5edb1c3b1a287c9f00ad35491994f5d51bf0d5df2d81c3d428da0ed53eb4a73c0da1fe979d7479df103164e440b8a3472e18306c9fc5f85fd313d29f34b0d WHIRLPOOL e3f8b6bdf00aa2ebe02971712b66172d00473b5dd8eeaac6667d2b1d410cde851ccd7b30497901dee82adedc4c5e43ff1f378c44a4ef30e225b1f6103c55b055 +DIST asclock-2.0.12.tar.gz 111858 SHA256 70df9bd991bc707c0fdf76ea1acbeff5924e9ae0b0704feb46afa591030704e6 SHA512 408c0cbd7d8c19e8cda450ed1e3e0857dd908768557221b5707bda4eaa56170899bb3ecbe1d9f487ad7cbe7ebe36019cfe7a19f58dae2b918fb1179d67a8bb0e WHIRLPOOL 5074d684048c15e5f57e2e77bbe6d7c2095b9dc61b0a5af273ca4fce244814925ef23beeaae8fa04d3a855cb7b6f3befcb3356045b97d401735e1943d55f11a0 +EBUILD asclock-2.0.12-r1.ebuild 1496 SHA256 ab6dd3c3c02c1e183140eeb5f2940b2797839d8507b25548a2aa84d0b380839e SHA512 8cc039e41a5165bde5548923d9ad11ba485a476290e61c095a8bb069357232e0031bebf2d037506fe04beb311ca96e7c875212f0599e18c5813fe4ce92faab7a WHIRLPOOL 6c4c4e878008c430a4d3fa483871d73270ad80f104d4ced531f67757cd658c183e9e8ff81941389eaf2784af26a80d9513eff5318325141b93ced18ea58950c0 +MISC ChangeLog 2561 SHA256 785bb60a0ae18c7bd6d67131354e874f9bf11f1e7c0d6060f8ff4568a6e28f3d SHA512 5abf8408c7730f60c176c45e5754c607ec3dcc07c8eddbaa667f24f89442cfaf27cac6fa748496e258bfb5db92e282709cffa70e521c5a9624f21233d865c04c WHIRLPOOL fadd36901d7fb4cbf2cc876136c1963fded1500112f5babbaf2bd4b4ec54456707fcf15d6aef8f2a2587eac140bd7b4d29b386c80fb90cc2f0b446b9740e1382 +MISC ChangeLog-2015 2996 SHA256 d47e1bdb7c9eafeb2cda464d0c1d8613df10979e02f6d2cc6eb10cf619362b36 SHA512 e3ef3ef7e7a6becd2a909126152bdc78a8da11364b3436510afb6b5355969541771d84a645b7dfa9f4b18879ed38e7371d7ba02f8014df7632860a5202f6b5bc WHIRLPOOL b42a6ad00ea73280670522ebf5b278a2ecf73f55b3a031dd088c8af92592150f2e664792da9eaa88bbd257d03e696a38696f75303d05d1fc611b818767274af3 +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/x11-plugins/asclock/asclock-2.0.12-r1.ebuild b/x11-plugins/asclock/asclock-2.0.12-r1.ebuild new file mode 100644 index 000000000000..eb6bcd3414b2 --- /dev/null +++ b/x11-plugins/asclock/asclock-2.0.12-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=3 +inherit eutils toolchain-funcs + +IUSE="" +DESCRIPTION="Clock applet for AfterStep" +SRC_URI="http://www.tigr.net/afterstep/download/asclock/${P}.tar.gz" +HOMEPAGE="http://tigr.net/afterstep/applets/" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~mips ppc sparc x86 ~amd64-linux ~x86-linux ~x64-solaris" + +DEPEND="x11-libs/libXpm" +RDEPEND="${DEPEND} + x11-proto/xextproto + x11-proto/xproto" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-gcc41.patch + ln -s themes/classic default_theme +} + +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 + $(tc-getCC) \ + ${CPPFLAGS} ${CFLAGS} ${ASFLAGS} \ + -I"${EPREFIX}"/usr/include \ + -D_BSD_SOURCE \ + -D_SVID_SOURCE \ + -DFUNCPROTO=15 \ + -DNARROWPROTO \ + -c -o ${x}.o ${x}.c || die "compile asclock failed" + done + $(tc-getCC) \ + ${LDFLAGS} \ + -o asclock \ + asclock.o parser.o symbols.o config.o \ + -L"${EPREFIX}"/usr/lib \ + -L"${EPREFIX}"/usr/lib/X11 \ + -lXpm -lXext -lX11 || die "link asclock failed" +} + +src_install() { + dobin asclock + local themesdir="/usr/share/${PN}/themes" + insinto ${themesdir} + doins -r themes/* + dodoc README README.THEMES TODO + cd "${D}"/${themesdir} + rm -f Freeamp/Makefile{,.*} + ln -s classic default_theme +} diff --git a/x11-plugins/asclock/files/asclock-gcc41.patch b/x11-plugins/asclock/files/asclock-gcc41.patch new file mode 100644 index 000000000000..5a5291219ee5 --- /dev/null +++ b/x11-plugins/asclock/files/asclock-gcc41.patch @@ -0,0 +1,44 @@ +diff -ur asclock-2.0.12-orig/asclock.h asclock-2.0.12/asclock.h +--- asclock-2.0.12-orig/asclock.h 2006-06-03 15:31:58.000000000 -0400 ++++ asclock-2.0.12/asclock.h 2006-06-03 15:35:51.000000000 -0400 +@@ -38,15 +38,15 @@ + #define INT_TYPE 0; + + /* the xpm data */ +-extern char *clock_xpm[]; +-extern char *month_xpm[]; +-extern char *weekday_xpm[]; +-extern char *led_xpm[]; +-extern char *date_xpm[]; +-extern char *hour_xpm[]; +-extern char *minute_xpm[]; +-extern char *second_xpm[]; +-extern char *beats_xpm[]; ++static char *clock_xpm[]; ++static char *month_xpm[]; ++static char *weekday_xpm[]; ++static char *led_xpm[]; ++static char *date_xpm[]; ++static char *hour_xpm[]; ++static char *minute_xpm[]; ++static char *second_xpm[]; ++static char *beats_xpm[]; + + /* the filenames */ + extern char clock_xpm_fn[MAX_PATH_LEN]; +diff -ur asclock-2.0.12-orig/themes/classic/beats.xpm asclock-2.0.12/themes/classic/beats.xpm +--- asclock-2.0.12-orig/themes/classic/beats.xpm 2006-06-03 15:31:58.000000000 -0400 ++++ asclock-2.0.12/themes/classic/beats.xpm 2006-06-03 15:37:04.000000000 -0400 +@@ -1 +1 @@ +-char *beats_xpm[] = { NULL }; ++static char *beats_xpm[] = { NULL }; +diff -ur asclock-2.0.12-orig/themes/classic/led.xpm asclock-2.0.12/themes/classic/led.xpm +--- asclock-2.0.12-orig/themes/classic/led.xpm 2006-06-03 15:31:58.000000000 -0400 ++++ asclock-2.0.12/themes/classic/led.xpm 2006-06-03 15:36:53.000000000 -0400 +@@ -1,5 +1,5 @@ + /* XPM */ +-char * led_xpm[] = { ++static char * led_xpm[] = { + "135 11 3 1", + " c #282828", + "O c #00df00", diff --git a/x11-plugins/asclock/metadata.xml b/x11-plugins/asclock/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/x11-plugins/asclock/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> |