commit:     35af31bc6b96a7b70f5da3489080cf13a390a559
Author:     Harri Nieminen <moikkis <AT> gmail <DOT> com>
AuthorDate: Mon Feb 20 10:21:27 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Feb 21 08:13:32 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35af31bc

x11-misc/xcalendar: EAPI bump 4 -> 6

Package-Manager: Portage-2.3.3, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/4043

 x11-misc/xcalendar/xcalendar-4.0-r2.ebuild | 55 ++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

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 0000000000..99e1df4464
--- /dev/null
+++ b/x11-misc/xcalendar/xcalendar-4.0-r2.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+}

Reply via email to