From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 841B9138C9D for ; Tue, 28 Apr 2015 21:42:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EC41FE0919; Tue, 28 Apr 2015 21:42:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 87484E0919 for ; Tue, 28 Apr 2015 21:42:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 674B1340F8B for ; Tue, 28 Apr 2015 21:42:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 49E48978 for ; Tue, 28 Apr 2015 21:42:02 +0000 (UTC) From: "José María Alonso" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "José María Alonso" Message-ID: <1430257304.39c3841e4c13bcaa204db0a7c04dbf5e9e397118.nimiux@gentoo> Subject: [gentoo-commits] proj/lisp:master commit in: dev-lisp/local-time/, dev-lisp/local-time/files/ X-VCS-Repository: proj/lisp X-VCS-Files: dev-lisp/local-time/files/1.0.5-gentoo-use-system-zonedata.patch dev-lisp/local-time/local-time-1.0.5.ebuild X-VCS-Directories: dev-lisp/local-time/ dev-lisp/local-time/files/ X-VCS-Committer: nimiux X-VCS-Committer-Name: José María Alonso X-VCS-Revision: 39c3841e4c13bcaa204db0a7c04dbf5e9e397118 X-VCS-Branch: master Date: Tue, 28 Apr 2015 21:42:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 7502788f-f8d6-4dcc-bc51-6b20fc32c3da X-Archives-Hash: 5b0d6f6099fd6cfa41ddb610ab230802 commit: 39c3841e4c13bcaa204db0a7c04dbf5e9e397118 Author: Chema Alonso gentoo org> AuthorDate: Tue Apr 28 21:41:44 2015 +0000 Commit: José María Alonso gentoo 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 +}