Skip to content

Commit

Permalink
dev-lisp/cl-unicode: add from lisp overlay
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.20.1
  • Loading branch information
José María Alonso Josa committed Dec 17, 2015
1 parent 3211a8a commit ec1ac23
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-lisp/cl-unicode/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST cl-unicode-0.1.5.tar.gz 485666 SHA256 9e9f1dda5133c3c94e09f638fec01410254c0020b89cc7342416d8ed1d377ee3 SHA512 0b66c0e711f7e37423aa638b43017adff648189a32032702b082dff140b2255847a15572a20f21e6f82a2e8cbd547f7f99bf9176e4fa464aa1d938575d8a2390 WHIRLPOOL e0b973416ff76f4e66b203ea5545c782a4bf59dccbbc7f1d26c6a78870efa31a4fe0b2e7eae17be25f49efc06272201ce9472fbb9e22d5332de8014aea1bc14c
47 changes: 47 additions & 0 deletions dev-lisp/cl-unicode/cl-unicode-0.1.5.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit common-lisp-3

MY_P="v${PV}"

DESCRIPTION="A library which provides Common Lisp implementations with knowledge about Unicode characters."
HOMEPAGE="http://weitz.de/cl-unicode/"
SRC_URI="https://github.com/edicl/${PN}/archive/${MY_P}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""

DEPEND="dev-lisp/flexi-streams"
RDEPEND="dev-lisp/cl-ppcre"

COMMONLISPS="sbcl clisp clozurecl cmucl ecls openmcl"

find-lisp-impl() {
for lisp in ${COMMONLISPS} ; do
[[ "$(best_version dev-lisp/${lisp})" ]] && echo "${lisp}" && return
done
die "No CommonLisp implementation found"
}

src_compile() {
# cl-unicode builds parts of its source code automatically the first time it
# is compiled, so we compile it here.
local lispimpl=$(find-lisp-impl)
local initclunicode="(progn (push \"${S}/\" asdf:*central-registry*) (require :${PN}))"
common-lisp-export-impl-args "${lispimpl}"
${lispimpl} ${CL_EVAL} "${initclunicode}"
}

src_install() {
common-lisp-install-sources *.lisp test/
common-lisp-install-sources -t all build/
common-lisp-install-asdf
dodoc CHANGELOG
dohtml doc/index.html
}
14 changes: 14 additions & 0 deletions dev-lisp/cl-unicode/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>common-lisp</herd>
<longdescription>
CL-UNICODE is a library which provides Common Lisp implementations
with knowledge about Unicode characters including their name, their
general category, the scripts and blocks they belong to, their
numerical value, and several other properties. It also provides the
ability to replace the standard syntax for reading Lisp characters
with one that is Unicode-aware and is used to enhance CL-PPCRE with
Unicode properties.
</longdescription>
</pkgmetadata>

0 comments on commit ec1ac23

Please sign in to comment.