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 /app-office/ical/ical-3.0-r2.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-office/ical/ical-3.0-r2.ebuild')
-rw-r--r-- | app-office/ical/ical-3.0-r2.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/app-office/ical/ical-3.0-r2.ebuild b/app-office/ical/ical-3.0-r2.ebuild new file mode 100644 index 000000000000..145e6232d0d7 --- /dev/null +++ b/app-office/ical/ical-3.0-r2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools eutils multilib virtualx + +DESCRIPTION="Tk-based Calendar program" +HOMEPAGE="https://launchpad.net/ical-tcl" +SRC_URI="https://launchpad.net/ical-tcl/3.x/${PV}/+download/${P}.tar.gz" + +LICENSE="HPND" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND=" + dev-lang/tcl:0 + dev-lang/tk:0 + " +DEPEND="${RDEPEND}" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gcc44.patch \ + "${FILESDIR}"/${P}-newtcl.patch \ + "${FILESDIR}"/${P}-makefile.patch \ + "${FILESDIR}"/${P}-fix-c++14.patch + + sed -i \ + -e 's:8.4 8.3:8.6 8.5 8.4 8.3:g' \ + -e 's:sys/utsname.h limits.h::' \ + configure.in || die + + sed -i \ + -e 's:mkdir:mkdir -p:' \ + -e "/LIBDIR =/s:lib:$(get_libdir):" \ + -e '/MANDIR =/s:man:share/man:' \ + Makefile.in || die + + mv configure.{in,ac} || die + + eautoconf +} + +src_compile() { + emake OPTF="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" +} + +src_test() { + [[ ${EUID} != 0 ]] && Xemake check +} + +src_install() { + emake prefix="${D}/usr" install + + DOCS=( ANNOUNCE *README RWMJ-release-notes.txt TODO ) + HTML_DOCS=( {.,doc}/*.html ) + einstalldocs + + rm -f "${D}"/usr/$(get_libdir)/ical/v3.0/contrib/README || die +} |