commit: 39c3841e4c13bcaa204db0a7c04dbf5e9e397118 Author: Chema Alonso <nimiux <AT> gentoo <DOT> org> AuthorDate: Tue Apr 28 21:41:44 2015 +0000 Commit: José María Alonso <nimiux <AT> gentoo <DOT> org> CommitDate: Tue Apr 28 21:41:44 2015 +0000 URL: https://gitweb.gentoo.org/proj/lisp.git/commit/?id=39c3841e
dev-lisp/local-time: bump to version 1.0.5 .../files/1.0.5-gentoo-use-system-zonedata.patch | 27 ++++++++++++ dev-lisp/local-time/local-time-1.0.5.ebuild | 49 ++++++++++++++++++++++ 2 files changed, 76 insertions(+) diff --git a/dev-lisp/local-time/files/1.0.5-gentoo-use-system-zonedata.patch b/dev-lisp/local-time/files/1.0.5-gentoo-use-system-zonedata.patch new file mode 100644 index 0000000..e8a5b62 --- /dev/null +++ b/dev-lisp/local-time/files/1.0.5-gentoo-use-system-zonedata.patch @@ -0,0 +1,27 @@ +diff -Nuar a/src/local-time.lisp b/src/local-time.lisp +--- a/src/local-time.lisp 2014-12-05 03:01:37.000000000 +0100 ++++ b/src/local-time.lisp 2015-04-27 11:12:05.317886065 +0200 +@@ -91,22 +91,7 @@ + (defvar *default-timezone*) + + (defparameter *default-timezone-repository-path* +- (flet ((try (project-home-directory) +- (when project-home-directory +- (ignore-errors +- (truename +- (merge-pathnames "zoneinfo/" +- (make-pathname :directory (pathname-directory project-home-directory)))))))) +- (or (when (find-package "ASDF") +- (let ((path (eval (read-from-string +- "(let ((system (asdf:find-system :local-time nil))) +- (when system +- (asdf:component-pathname system)))")))) +- (try path))) +- (let ((path (or #.*compile-file-truename* +- *load-truename*))) +- (when path +- (try (merge-pathnames "../" path))))))) ++ #p"/usr/share/zoneinfo/") + + ;;; Per Naggum we use the terms Political Time and Scientific Time to + ;;; distinguish between two ways to think about adjusting times around diff --git a/dev-lisp/local-time/local-time-1.0.5.ebuild b/dev-lisp/local-time/local-time-1.0.5.ebuild new file mode 100644 index 0000000..2f8720d --- /dev/null +++ b/dev-lisp/local-time/local-time-1.0.5.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit common-lisp-3 + +DESCRIPTION="LOCAL-TIME is a development library for manipulating date and time information." +HOMEPAGE="http://common-lisp.net/project/local-time/" +SRC_URI="https://common-lisp.net/project/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="doc postgres" + +DEPEND="sys-apps/texinfo + doc? ( virtual/texi2dvi )" +RDEPEND="sys-libs/timezone-data + dev-lisp/cl-fad" +PDEPEND="postgres? ( dev-lisp/postmodern )" + +install_postgresql_files() { + common-lisp-install-sources src/integration/cl-postgres.lisp + common-lisp-install-asdf cl-postgres+local-time.asd +} + +src_prepare() { + epatch "${FILESDIR}"/${PV}-gentoo-use-system-zonedata.patch +} + +src_compile() { + cd doc + if use doc ; then + VARTEXFONTS="${T}"/fonts \ + texi2pdf ${PN}.texinfo -o ${PN}.pdf || die "Cannot build PDF docs" + fi +} + +src_install() { + common-lisp-install-sources src/*.lisp test + common-lisp-install-asdf local-time.asd local-time.test.asd + + use postgres && install_postgresql_files + dodoc CREDITS README TODO + doinfo doc/${PN}.info + use doc && dodoc doc/${PN}.pdf +}
