summaryrefslogtreecommitdiff
path: root/x11-misc/xcalendar
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-misc/xcalendar
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-misc/xcalendar')
-rw-r--r--x11-misc/xcalendar/Manifest7
-rw-r--r--x11-misc/xcalendar/files/xcalendar-4.0-implicits.patch22
-rw-r--r--x11-misc/xcalendar/files/xcalendar-4.0-motif-gentoo.diff26
-rw-r--r--x11-misc/xcalendar/metadata.xml8
-rw-r--r--x11-misc/xcalendar/xcalendar-4.0-r2.ebuild54
5 files changed, 117 insertions, 0 deletions
diff --git a/x11-misc/xcalendar/Manifest b/x11-misc/xcalendar/Manifest
new file mode 100644
index 000000000000..4819a3f4cc58
--- /dev/null
+++ b/x11-misc/xcalendar/Manifest
@@ -0,0 +1,7 @@
+AUX xcalendar-4.0-implicits.patch 381 SHA256 6d84f6b075b0e838863a5732f16ceac0bdc8203bd3a289fc4f126aedf00f6a87 SHA512 56c68560d2f2d75b5e7427e870189771f85994e934f7d813eaa89e34002d769b9aa1e24ab49a84a395d1535963802a249171e423e47c5d0e741e1a6e9a07fbc2 WHIRLPOOL ac1c9a0b478bfcf52dc08ef2414fcae292a7252b38739a6f73124da66d84f1998607f34f44a2e9f18185ef91c63cafa60a248bf59a37d3e1bd124a405d1d8cbe
+AUX xcalendar-4.0-motif-gentoo.diff 1104 SHA256 c1f3fdc391f51db457b7fe1de066a6f1faced4b31d69715fbd9e2d12e847c135 SHA512 b6f15a68e2698a1d3f8dca2be8cc0751dae447268c6bca76aeccaa5a919dc31d3675fbb8d49d7d0d3293c50835b2628346f1ea5f7eb1da6152bb1ac73282ad59 WHIRLPOOL 2f14d7ffd352fe052837aff63438d9c3aea1b6e8ead0c7fd836388d28026099bb7dfb29c92d24697fee9f9c1dfdb20f218884dfd65f87428c1a979ec267a4f65
+DIST xcalendar-4.0+i18n.tar.gz 48635 SHA256 f4c45d863c2a8a04bfcc4180cb06bd13bbdc26f855578e99b1e459e834c6fd7f SHA512 c9b3756bf857e4956360cb3efa1e185bdc09d6053e1b8db040822c73320589ef825330184fa3a8b949f94a89a6ef56438927886b3740922a4bca7dbab9285a4d WHIRLPOOL b47aff079b633ab696346cd08b2fb1a7a078d077f2a47240d0ef6fd4399fc9cfbe008024e0f8b73c90422fda49d4af8569a39cf7c11d747138dcd77c6e2d3c84
+EBUILD xcalendar-4.0-r2.ebuild 1269 SHA256 f716013e0273621ebe1db4b77cf19b185cf39ae2d2d1a398284c6c2af350d343 SHA512 a51be4c83036c5ba6f867626576c9d0abd1508b679c66135561ebc4a3f1f914242a0d6da185c39b7593b613142bc6a6d3c23e7acf713fc6e316f9f6fb39bb3fc WHIRLPOOL c9e2ab4e373175c9b34dda495fa145bbf482957fd5599da60790306b4e8b8b2fc7cef904b41a5db8ad897814c1410061c11f8d90c4c7296b012ffda5fd428247
+MISC ChangeLog 2517 SHA256 6b7cad9e9c3bb694e4fe358895a25752b50c411535dc4bebe555a098a5b402bc SHA512 53adab1a51128a5a7970996b33113b08238f652377abea29247cb370abd45fee276d6d3f6e11f87e99e107c33e6329113ae593b5855bd6a16b8ea9a3c9a73cf3 WHIRLPOOL 9e3700f57bfb31f0ff86a302498f34dd9667e30a3d914727c7d6ef0e596027a67aa8c664dfd64bf203d8ca657f009a7c50ff5c8cc9309afe80788139e37b0ee7
+MISC ChangeLog-2015 4050 SHA256 d8a59ea8a68d75c62e7e40f84ef476b0795a58fa43cfc80b29fce531e70c0ed1 SHA512 9b48768baf0bd0105cf76b13b36f46d999941fccb35d1922b8f46424300aad509b94b49b6c24a90655b97a1c5a6ed473853571ca3d4fdeaf08905b1f8ad1cf96 WHIRLPOOL 6ec28c7db632b3e07b18cbcfd26788954b62af861bfa961de85a7d08121679519996d04bed2e89cb1ced8a874040922a464dedb811beea853cc75363111a8f30
+MISC metadata.xml 276 SHA256 437f3dba7deca9da3b3f8ecda9bb5e97253de0412cbb3095d876f39140f3ea98 SHA512 3497963f4fb51bb32521472b54a995091cb457d2cda65c786bd4b46e5af325caf8f6d5c969cefa0c09fe717df09fb015ec59b52f5571c3b2b9d4ea33e6c843ab WHIRLPOOL 8550fd604cf609511bf7c34245ebd6682dd6d058d8cbfa099a77c94d1afcf592909eb679a28a0806957ac0949c6cff350675e0182303ec5890a5e2c2c26d29c5
diff --git a/x11-misc/xcalendar/files/xcalendar-4.0-implicits.patch b/x11-misc/xcalendar/files/xcalendar-4.0-implicits.patch
new file mode 100644
index 000000000000..977ca96e572f
--- /dev/null
+++ b/x11-misc/xcalendar/files/xcalendar-4.0-implicits.patch
@@ -0,0 +1,22 @@
+Fix implicit functions declarations
+
+--- xcalendar/xcalendar.h
++++ xcalendar/xcalendar.h
+@@ -37,6 +37,7 @@
+
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <X11/Xos.h>
+ #include <X11/Xlib.h>
+ #include <X11/Intrinsic.h>
+--- xcalendar/lists.c
++++ xcalendar/lists.c
+@@ -25,6 +25,7 @@
+
+ #include "xcalendar.h"
+
++is_last(LList *list);
+
+ List
+ CreateList(length, elementSize)
diff --git a/x11-misc/xcalendar/files/xcalendar-4.0-motif-gentoo.diff b/x11-misc/xcalendar/files/xcalendar-4.0-motif-gentoo.diff
new file mode 100644
index 000000000000..a35d98bcb814
--- /dev/null
+++ b/x11-misc/xcalendar/files/xcalendar-4.0-motif-gentoo.diff
@@ -0,0 +1,26 @@
+--- xcalendar.orig/Imakefile Sat Sep 30 20:19:17 1995
++++ xcalendar/Imakefile Tue Aug 20 08:37:48 2002
+@@ -1,18 +1,18 @@
+ XCALENDAR_LIBDIR = $(LIBDIR)/xcalendar
+ LIBFILES = larrow.xbm qmark.xbm quit.xbm rarrow.xbm xcalendar.hlp
+ # Comment out the following two lines for the Motif version
+-LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
+- EXTRA_DEFINES = -DATHENA
++#LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
++# EXTRA_DEFINES = -DATHENA
+ # Uncomment the following two lines for the Motif version
+-# LOCAL_LIBRARIES = -L/usr/local/Motif/lib -lXm $(XMULIB) $(XTOOLLIB) $(XLIB)
+-# EXTRA_DEFINES = -I/usr/local/Motif/include
++ LOCAL_LIBRARIES = -lXm $(XMULIB) $(XTOOLLIB) $(XLIB)
++ EXTRA_DEFINES =
+ SRCS = xcalendar.c dayeditor.c lists.c
+ OBJS = xcalendar.o dayeditor.o lists.o
+
+ #
+ # for Internationalization
+ #
+-EXTRA_DEFINES = -DXI18N -DATHENA
++#EXTRA_DEFINES = -DXI18N -DATHENA
+ ##if !SharedLibXwchar
+ # _UseCat($(USRLIBDIR),$(CONTRIBSRC)/lib/Xwchar,/libXwchar.a)
+ # XWCHARLIB = LoaderLibPrefix _Use(-lXwchar,$(DEPXWCHARLIB))
diff --git a/x11-misc/xcalendar/metadata.xml b/x11-misc/xcalendar/metadata.xml
new file mode 100644
index 000000000000..2ba8e9e851e4
--- /dev/null
+++ b/x11-misc/xcalendar/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>desktop-misc@gentoo.org</email>
+ <name>Gentoo Desktop Miscellaneous Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/x11-misc/xcalendar/xcalendar-4.0-r2.ebuild b/x11-misc/xcalendar/xcalendar-4.0-r2.ebuild
new file mode 100644
index 000000000000..13ec7c00d2c3
--- /dev/null
+++ b/x11-misc/xcalendar/xcalendar-4.0-r2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="A simple interactive calendar program with a notebook capability"
+HOMEPAGE="http://www.freebsd.org/"
+SRC_URI="ftp://daemon.jp.FreeBSD.org/pub/FreeBSD-jp/ports-jp/LOCAL_PORTS/${P}+i18n.tar.gz"
+
+LICENSE="HPND"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc ppc64 x86 ~x86-fbsd"
+IUSE="motif"
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXmu
+ x11-libs/libXt
+ x11-libs/libXaw
+ x11-libs/libXext"
+DEPEND="${RDEPEND}
+ x11-misc/imake
+ x11-proto/xproto
+ x11-misc/gccmakedep
+ motif? ( >=x11-libs/motif-2.3:0 )"
+
+S=${WORKDIR}/${PN}
+PATCHES=( "${FILESDIR}"/${P}-implicits.patch )
+
+src_prepare() {
+ use motif && PATCHES+=( "${FILESDIR}"/${P}-motif-gentoo.diff )
+ default
+ sed -e "s:%%XCALENDAR_LIBDIR%%:/usr/$(get_libdir)/xcalendar:" \
+ -e "s:/usr/local/X11R5/lib/X11/:/usr/$(get_libdir)/:" \
+ -i XCalendar.sed || die
+}
+
+src_compile() {
+ xmkmf -a || die
+ emake CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS}" EXTRA_LDOPTIONS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin xcalendar
+ newman xcalendar.man xcalendar.1
+
+ insinto /usr/share/X11/app-defaults
+ newins XCalendar.sed XCalendar
+
+ insinto /usr/$(get_libdir)/xcalendar
+ doins *.xbm *.hlp
+
+ einstalldocs
+}