Permalink
Browse files

Redid the manifests.

  • Loading branch information...
1 parent c201310 commit a3ab0a78f20de459daf8e0f01b81aec9c124169e @eyolfson committed Mar 29, 2010
@@ -1,7 +1,4 @@
AUX 70clojure-mode-gentoo.el 210 RMD160 1d700e235f768e661fc148bf8a7778f4d7b96fe7 SHA1 9859822338588d53ebe7ce76fa5ef64541881726 SHA256 67a111b8600bd2fcedc04ca7d06f286b8fe1bc93ec0b45ae28d71fbd012defe0
-AUX 70clojure-mode-gentoo.el~ 275 RMD160 e7068cf34be9e9cf59bd62d29561ddb51c5e3291 SHA1 d53005da385156af0cb94b493302d488d0e8cbf3 SHA256 680f1534a790e2b1d60dbc4b2acff1a734d402a17d714376f917628ce374f55a
DIST clojure-mode.el 20017 RMD160 397c791104a3ccadd908529995a58e632593c7b8 SHA1 9052a69937029efba1717caadc49a60f9122f1c1 SHA256 a727ff9efb2faf76da31d8b89ff2cb730e2d91ab52936e149b6fe9c6643ad1d0
EBUILD clojure-mode-1.0.ebuild 485 RMD160 8c1a4cecadada6f12a09c91922e247f1ba033e35 SHA1 90cd3e71f70e9f4e8a32b6a3a1842a3f65106985 SHA256 b89b0ca9db2ac2ef9da423c8b9f99e1e7214eaaffefaaf291ab6ae4a71e057c1
EBUILD clojure-mode-1.5.ebuild 611 RMD160 1bc54f366acd3e19fe55736f3599380e426928fe SHA1 80afde31dc00512fde68223f7ab33f77ebf4051d SHA256 ac5de423cd62db91aa0bdaa32ab73c62c41c32fea356bdf4d0ce44b47ae1829b
-MISC clojure-mode-1.0.ebuild~ 412 RMD160 13a16b3e58a1182dcbb2206df994344cce50f223 SHA1 d40f8c950b66834c2f5388e3c0a096a3d36c49ba SHA256 0b27b69a08525c3a38c0093a9005c2b1f164176bca34906bfb50da65479516bc
-MISC clojure-mode-1.5.ebuild~ 485 RMD160 8c1a4cecadada6f12a09c91922e247f1ba033e35 SHA1 90cd3e71f70e9f4e8a32b6a3a1842a3f65106985 SHA256 b89b0ca9db2ac2ef9da423c8b9f99e1e7214eaaffefaaf291ab6ae4a71e057c1
@@ -1,3 +1,2 @@
DIST clojure-1.1.0.zip 2135400 RMD160 8cb486181edf2a8e8d9ea061602d396304e503c4 SHA1 c253dd52734a008321a1db34439744a6d02587ea SHA256 7ce6c86ccabf38ed9893861e38bc4ab4df31570827659f6cef6466116c999118
EBUILD clojure-1.1.0.ebuild 749 RMD160 362ab1903ce78974e99a36140595713155ec5dcf SHA1 5b8076f92f649f01bfe7a270c2fe95ad2fe4f0ba SHA256 b3aa259f03cb78137976e5c4bee5c9230cc7b8f6f66618f673784c6ecb7afc8c
-MISC clojure-1.1.0.ebuild~ 1312 RMD160 b694a22063eb122be40e28ab5174d4914915e9cc SHA1 3af44c4127dee7a6d32e4421f1a74581c783152b SHA256 95ea3815d4ee98dbadc15aec7f804055107a3e543b45a3bd1f7ba1d2e48c5790
@@ -1,3 +1,2 @@
-DIST lein 2664 RMD160 6050a1d6941c9278a98ae017fb9644cc4de61612 SHA1 5834fd0876c6184e7f59b965e42d4cfe61679ddf SHA256 096a463a7d7f841d9685d3b8a1cf70138d53852b3d205a025e93e0a16d3e87f1
+DIST lein 4061 RMD160 554d195d549080b7083747307bb00cc0234d44a6 SHA1 87feb27f7ec25fc7cc3d6427f369feb710d01278 SHA256 8ee79244f738ccdf46ffe427fa28c48ab63521ee1a10f0c0bfe69c965cedac63
EBUILD leiningen-1.0.1.ebuild 621 RMD160 e73f7e1e42201821c6ea7f864df7ad9ea0db4085 SHA1 6acf927a2590e83bba928627a56dd4939f134a94 SHA256 1fa5a62274271dff9709e102c671d5fe69f61c4b2ceb00353cd5ac953202da61
-MISC leiningen-1.0.1.ebuild~ 609 RMD160 e80e9e0180340abcaefe35c37fa66c7f60c855f5 SHA1 1bd52d86efa7481a333c2d20d77acaf55e6386f7 SHA256 18c692677bd073a2eaf5c5e419db514b7fb28fb444295e81fdbdc006056383f4
@@ -1,3 +1,2 @@
DIST cl-launch_2.36.tar.gz 49521 RMD160 94b6f915f9d566d1e9856da9b236cd20b5497886 SHA1 462e885dd69d588e4010602da2226ed7bbc1a661 SHA256 2490b438f3177a777ef568b4c682e7038b26ee9d9955c0fa685ba9930103a328
EBUILD cl-launch-2.36.ebuild 761 RMD160 7b5a66774447277628fe2428036fab639f18f3e1 SHA1 0510e5c15088b1af835a614aae3ede79da4c8631 SHA256 3eec875471c89763db9b7cc50f4a0c44a9bc3b35583060fa71b0ef92bafe639e
-MISC cl-launch-2.36.ebuild~ 764 RMD160 05f6866bc2aebab2ae161160bde1bdaaa5538203 SHA1 29eebece42c655dee53bec26b0d90dc1bc94caf4 SHA256 8bf53704f1c42a6185957bca2bd9e2290cc1c2fec531c496434f17aa7c030dab
@@ -1,3 +1,2 @@
DIST Weather-Com-0.5.5.tar.gz 47599 RMD160 3b85174310877420d45f3ed6d216da82c6d1130b SHA1 3bc7c1dc451839981bf8e653f976aff5a70c635b SHA256 0032c79d4181f603d02dbc01dd496726239a48ce3fcd2945e211155aae176d34
EBUILD Weather-Com-0.5.5.ebuild 481 RMD160 238875e7a9fa57583ac3e08bdfca0aec1d7a1de9 SHA1 c17da833fcb014ba110258e37061ea095243e8d5 SHA256 66a48860bcb64d2fc1de325b4334c4007e05e80920075c1c6884589b1ce9f952
-MISC Weather-Com-0.5.5.ebuild~ 453 RMD160 85aafbdda2f18989cf97f0e09ea5ed487dff488d SHA1 15bd68f02608c227b02de337e8bafef5a8599423 SHA256 c9ac4b5fd25fb6601b76d82e6ecbe49313bccee9bdc383cdf1eef02edf705158
View
@@ -0,0 +1,138 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+#
+# Maintained by the Gentoo Common Lisp project
+# irc: #gentoo-lisp, herd: <common-lisp@gentoo.org>, list: <gentoo-lisp@gentoo.org>
+#
+# This eclass supports the installation of Common Lisp libraries
+#
+# Public functions:
+#
+# common-lisp-install path [<other_paths>...]
+# recursively install sources
+#
+# common-lisp-symlink-asdf [<paths>...]
+# create symlinks in $CLSYSTEMROOT to asdf files
+#
+# common-lisp-export-impl-args lisp-implementation
+# export a few variables containing the switches necessary
+# to make the CL implementation perform basic functions:
+# * CL_NORC: don't load initfiles
+# * CL_LOAD: load a certain file
+# * CL_EVAL: eval a certain expression at startup
+#
+
+inherit eutils
+
+# CL packages in the overlay don't have their tarballs on the mirrors
+# so it's useless to mirror them
+RESTRICT="mirror"
+
+CLSOURCEROOT="${ROOT%/}"/usr/share/common-lisp/source
+CLSYSTEMROOT="${ROOT%/}"/usr/share/common-lisp/systems
+
+# Sources will be installed into ${CLSOURCEROOT}/${CLPACKAGE}/
+# Any asdf files will be symlinked in ${CLSYSTEMROOT}/${CLSYSTEM} as they may be
+# in an arbitrarily deeply nested directory under ${CLSOURCEROOT}/${CLPACKAGE}/
+
+# To override, set these after inheriting this eclass
+CLPACKAGE="${PN}"
+CLSYSTEMS="${PN}"
+
+RDEPEND="virtual/commonlisp"
+
+EXPORT_FUNCTIONS src_install
+
+absolute-path-p() {
+ [[ $# = 1 ]] || die "${FUNCNAME[0]} must receive one argument"
+ [[ ${1} = /* ]]
+}
+
+common-lisp-install-source() {
+ [[ $# = 2 ]] || die "${FUNCNAME[0]} must receive exactly two arguments"
+
+ local source="${1}"
+ local target="${CLSOURCEROOT}/${CLPACKAGE}/${2}"
+ insinto "${target}"
+ doins -r "${source}" || die "Failed to install ${source} into $(dirname "${target}")"
+}
+
+common-lisp-install() {
+ [[ $# = 0 ]] && die "${FUNCNAME[0]} must receive at least one argument"
+ for path in "$@"; do
+ if absolute-path-p "${path}" ; then
+ die "Cannot install files with absolute path: ${path}"
+ fi
+ common-lisp-install-source "${path}" "$(dirname "${path}")"
+ done
+}
+
+common-lisp-install-single-system() {
+ [[ $# != 1 ]] && die "${FUNCNAME[0]} must receive exactly one argument"
+
+ local file="${CLSOURCEROOT%/}/${CLPACKAGE}/${1}.asd"
+ [[ -f "${D}"/${file} ]] || die "${D}/${file} does not exist"
+ dosym "${file}" "${CLSYSTEMROOT%/}/$(basename ${file})"
+}
+
+# Symlink asdf files
+# if no arguments received, default to the contents of ${CLSYSTEMS}
+common-lisp-symlink-asdf() {
+ dodir "${CLSYSTEMROOT}"
+
+ [[ $# = 0 ]] && set - ${CLSYSTEMS}
+ for package in "$@" ; do
+ common-lisp-install-single-system "${package}"
+ done
+}
+
+common-lisp-system-symlink() {
+ die "common-lisp-system-symlink() has been renamed to common-lisp-symlink-asdf()"
+}
+
+common-lisp-2_src_install() {
+ common-lisp-install *.{lisp,asd}
+ common-lisp-symlink-asdf
+ for i in README HEADER TODO CHANGELOG ChangeLog CHANGES BUGS CONTRIBUTORS *NEWS ; do
+ [[ -f ${i} ]] && dodoc ${i}
+ done
+}
+
+common-lisp-export-impl-args() {
+ if [[ $# != 1 ]]; then
+ eerror "Usage: ${0} lisp-implementation"
+ die "${0}: wrong number of arguments: $#"
+ fi
+ case ${1} in
+ clisp)
+ CL_NORC="-norc"
+ CL_LOAD="-i"
+ CL_EVAL="-x"
+ ;;
+ clozure|ccl|openmcl)
+ CL_NORC="--no-init"
+ CL_LOAD="--load"
+ CL_EVAL="--eval"
+ ;;
+ cmucl)
+ CL_NORC="-nositeinit -noinit"
+ CL_LOAD="-load"
+ CL_EVAL="-eval"
+ ;;
+ ecl)
+ CL_NORC="-norc"
+ CL_LOAD="-load"
+ CL_EVAL="-eval"
+ ;;
+ sbcl)
+ CL_NORC="--sysinit /dev/null --userinit /dev/null"
+ CL_LOAD="--load"
+ CL_EVAL="--eval"
+ ;;
+ *)
+ die ${1} is not supported by ${0}
+ ;;
+ esac
+ export CL_NORC CL_LOAD CL_EVAL
+}
View
@@ -0,0 +1,41 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+#
+# Copyright 2008 Leonardo Valeri Manera <l.valerimanera@gmail.com>
+#
+# @ECLASS: eggs-svn.eclass
+# @MAINTAINER:
+# @BLURB: Eclass for Chicken-Scheme SVN Egg packages
+# @DESCRIPTION:
+#
+# This eclass provides generalized functions to compile, test and
+# install eggs, as well as setting a number of variables to default
+# or autogenerated values.
+
+inherit eggs subversion
+
+SRC_URI=""
+if [[ -n ${NON_TRUNK} ]]; then
+ ESVN_REPO_URI="http://galinha.ucpel.tche.br/svn/chicken-eggs/release/3/${EGG_NAME}"
+else
+ ESVN_REPO_URI="http://galinha.ucpel.tche.br/svn/chicken-eggs/release/3/${EGG_NAME}/trunk"
+fi
+ESVN_OPTIONS="--username=anonymous --password= --non-interactive"
+
+eggs-svn-doc_maker() {
+ true
+}
+
+eggs-svn_src_unpack() {
+ mkdir "${S}"
+ cd "${S}"
+ subversion_fetch || die
+}
+
+eggs-svn_src_compile() {
+ eggs-svn-doc_maker
+ eggs_src_compile
+}
+
+EXPORT_FUNCTIONS src_unpack src_compile
View
@@ -0,0 +1,176 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+#
+# Copyright 2008 Leonardo Valeri Manera <l.valerimanera@gmail.com>
+#
+# @ECLASS: eggs.eclass
+# @MAINTAINER:
+# @BLURB: Eclass for Chicken-Scheme Egg packages
+# @DESCRIPTION:
+#
+# This eclass provides generalized functions to compile, test and
+# install eggs, as well as setting a number of variables to default
+# or autogenerated values.
+
+# @ECLASS-VARIABLE: NEED_CHICKEN
+# @DESCRIPTION:
+# If you need anything different from chicken 3.0.5, use the
+# NEED_CHICKEN variable before inheriting elisp.eclass. Set it to the
+# major version the egg needs and the dependency will be adjusted.
+
+# @ECLASS-VARIABLE: EGG_TESTABLE
+# @DESCRIPTION:
+# Enables egg test-phase if set to 'yes'.
+
+# @ECLASS-VARIABLE: EGG_NAME
+# @DESCRIPTION:
+# Override egg name autogeneration by settting this before importing
+# this eclass.
+
+RESTRICT="primaryuri"
+
+inherit flag-o-matic
+
+VERSION="${NEED_CHICKEN:-3.1.0}"
+DEPEND=">=dev-scheme/chicken-${VERSION}"
+RDEPEND=">=dev-scheme/chicken-${VERSION}"
+SLOT="0"
+IUSE=""
+
+case ${PN} in
+ srfi*)
+ EGG_NAME=${PN/#srfi/srfi-}
+ ;;
+ *)
+ EGG_NAME=${EGG_NAME:-${PN}}
+ ;;
+esac
+
+EGGDOC_DIR="/usr/share/doc/chicken-eggs/${PN}"
+
+SRC_URI="http://cleo.uwindsor.ca/cgi-bin/gentoo-eggs/${EGG_NAME}-3-${PV}.tar.gz"
+
+if [[ -n "${OLD_EGGPAGE}" ]]; then
+ HOMEPAGE="http://www.call-with-current-continuation.org/eggs/${EGG_NAME}"
+else
+ HOMEPAGE="http://chicken.wiki.br/${EGG_NAME}"
+fi
+
+# @FUNCTION: eggs-install_binaries
+# @USAGE:
+# @DESCRIPTION:
+# INstall egg binaries/scripts/wrappers into /usr/bin
+eggs-install_binaries() {
+ if [[ -d "${S}/install/${PROGRAM_PATH}" ]]; then
+ pushd "${S}/install/${PROGRAM_PATH}" >/dev/null
+ local file
+ for file in $(ls); do
+ einfo " => /usr/bin/${file}"
+ dobin "${file}" || die "failed installing ${file}"
+ eend $?
+ done
+ popd >/dev/null
+ fi
+}
+
+# @FUNCTION: eggs-install_files
+# @USAGE:
+# @DESCRIPTION:
+# Install egg files into the correct locations.
+eggs-install_files() {
+ local destination=${1:-${CHICKEN_REPOSITORY}}
+ local real_destination
+ local file
+ for file in $(ls); do
+ case "${file}" in
+ *.html|*.css)
+ # Hackish, but working, way of displaying real destinations
+ # in info messages. Feel free to improve on it.
+ real_destination=${EGGDOC_DIR}
+ insinto "${EGGDOC_DIR}"
+ insopts -m644
+ ;;
+ *.so)
+ real_destination=${destination}
+ insinto "${destination}"
+ insopts -m755
+ ;;
+ *)
+ real_destination=${destination}
+ insinto "${destination}"
+ insopts -m644
+ ;;
+ esac
+ if [[ -d "${file}" ]];then
+ # To iterate is human, to recurse, divine.
+ ( cd "${file}"; eggs-install_files "${destination}/${file}" )
+ else
+ einfo " => ${real_destination}/${file}"
+ doins "${file}" || die "failed installing ${file}"
+ eend $?
+ fi
+ done
+}
+
+# @FUNCTION: eggs-set_paths
+# @USAGE:
+# @DESCRIPTION:
+# Modify the .setup-info file(s) to reflect true documentation
+# installation paths.
+eggs-set_paths() {
+ ebegin "Processing setup files"
+ for setup_file in $(ls *.setup-info); do
+ einfo " ${setup_file}"
+ sed -e "s:${PROGRAM_PATH}:/usr/bin:g" \
+ -e "s:${CHICKEN_REPOSITORY}/\(.*\).html:${EGGDOC_DIR}/\1.html:g" \
+ -i "${setup_file}" || die "failed processing ${setup_file}"
+ eend $?
+ done
+ einfo "Done processing setup files."
+}
+
+#
+# Ebuild function redefintions
+#
+
+eggs_src_unpack() {
+ mkdir "${S}"
+ cd "${S}"
+ unpack "${A}" || die
+}
+
+eggs_src_compile() {
+ strip-flags || die
+ filter-ldflags -Wl,--as-needed
+ CSC_OPTIONS="-C '$CFLAGS $LDFLAGS'"
+
+ CHICKEN_SETUP_OPTIONS="-v -k -build-prefix ${S}/build -install-prefix ${S}/install"
+
+ chicken-setup ${CHICKEN_SETUP_OPTIONS} || die "egg compilation failed"
+}
+
+eggs_src_test() {
+ if [[ "${EGG_TESTABLE}" == "yes" ]]; then
+ chicken-setup -n -t ${CHICKEN_SETUP_OPTIONS} || die "egg test phase failed"
+ fi
+}
+
+eggs_src_install() {
+ CHICKEN_REPOSITORY=$(chicken-setup -R) || die
+ PROGRAM_PATH=$(chicken-setup -P) || die
+
+ pushd "${S}/install/${CHICKEN_REPOSITORY}" >/dev/null
+
+ [[ -f index.html ]] && rm index.html
+ eggs-set_paths
+
+ ebegin "Installing files"
+ eggs-install_binaries
+ eggs-install_files
+ einfo "Done with installation."
+
+ popd >/dev/null
+}
+
+EXPORT_FUNCTIONS src_unpack src_compile src_test src_install
Oops, something went wrong.

0 comments on commit a3ab0a7

Please sign in to comment.