diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-lang/teyjus | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-lang/teyjus')
-rw-r--r-- | dev-lang/teyjus/Manifest | 1 | ||||
-rw-r--r-- | dev-lang/teyjus/files/50teyjus-gentoo.el | 3 | ||||
-rw-r--r-- | dev-lang/teyjus/files/teyjus-2.0.2-flags.patch | 14 | ||||
-rw-r--r-- | dev-lang/teyjus/metadata.xml | 29 | ||||
-rw-r--r-- | dev-lang/teyjus/teyjus-2.0.2.ebuild | 108 |
5 files changed, 155 insertions, 0 deletions
diff --git a/dev-lang/teyjus/Manifest b/dev-lang/teyjus/Manifest new file mode 100644 index 000000000000..722e1eb2bf6c --- /dev/null +++ b/dev-lang/teyjus/Manifest @@ -0,0 +1 @@ +DIST teyjus-source-2.0-b2.tar.gz 465815 SHA256 f589fb460d7095a6e674b7a6413772c41b98654c38602c3e8c477a976da99052 SHA512 071a25cd5341f7562f07dcaae1f87c35eb394ddab94a5160826c7fb2d9a51efea909b41947205503ebcc58df04388baf9eaf9f5a614186701940da29db1c1b29 WHIRLPOOL 0dfd8128d194ef5d6cf4fdf6d75c4c654ab834af6c090f595b2defd91645cc0fca4ae4a8483c7a77b4a7e8dae5b3c31069bf85d240538db2f88df69d6f7f42d0 diff --git a/dev-lang/teyjus/files/50teyjus-gentoo.el b/dev-lang/teyjus/files/50teyjus-gentoo.el new file mode 100644 index 000000000000..7e05cdec7aec --- /dev/null +++ b/dev-lang/teyjus/files/50teyjus-gentoo.el @@ -0,0 +1,3 @@ +;;; teyjus site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") diff --git a/dev-lang/teyjus/files/teyjus-2.0.2-flags.patch b/dev-lang/teyjus/files/teyjus-2.0.2-flags.patch new file mode 100644 index 000000000000..dcccd25f9fe4 --- /dev/null +++ b/dev-lang/teyjus/files/teyjus-2.0.2-flags.patch @@ -0,0 +1,14 @@ +--- teyjus-orig/source/OMakefile 2008-11-17 07:52:31.000000000 +1100 ++++ teyjus/source/OMakefile 2012-12-12 21:24:24.318557107 +1100 +@@ -19,7 +19,10 @@ + #
+
+ OCAMLINCLUDES += $(CMP) $(DIS) $(SIM) $(LOD)
+-CFLAGS += -g
++CFLAGS +=
++LDFLAGS +=
++OCAMLFLAGS += -g
++OCAML_LINK_FLAGS +=
+
+ ############################################################
+ # Compilation files
diff --git a/dev-lang/teyjus/metadata.xml b/dev-lang/teyjus/metadata.xml new file mode 100644 index 000000000000..e14550d0f536 --- /dev/null +++ b/dev-lang/teyjus/metadata.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>gienah@gentoo.org</email> + <name>Mark Wright</name> +</maintainer> +<longdescription lang='en'> +The Teyjus system is an efficient implementation of the higher-order +logic programming language Lambda Prolog. The main strength of Lambda +Prolog, a language developed by Dale Miller and Gopalan Nadathur, is +the support it offers for what is known as lambda tree syntax, a new +and effective way to view the structure of complex syntactic objects +such as types, formulas, proofs and programs. Lambda Prolog provides +this support by using lambda terms as data representation devices and +by including primitives for probing such terms in logically meaningful +ways. The new features present in the language raise several +implementation challenges that have been addressed in collaborative +work between Nadathur and his students and colleagues. The name +"Teyjus" actually stands both for a project and for a class of +compiler and virtual machine based realizations of Lambda Prolog +arising from the research carried out within this project. Underlying +the most recent version of the Teyjus system is a new and +significantly improved virtual machine that has been designed by +Xiaochu Qi as part of her doctoral dissertation work at the University +of Minnesota. This virtual machine extensively exploits a special form +of higher-order unification known as pattern unification. +</longdescription> +</pkgmetadata> diff --git a/dev-lang/teyjus/teyjus-2.0.2.ebuild b/dev-lang/teyjus/teyjus-2.0.2.ebuild new file mode 100644 index 000000000000..41ac98c11641 --- /dev/null +++ b/dev-lang/teyjus/teyjus-2.0.2.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit base elisp-common multilib versionator + +MY_PN="${PN}-source" +MY_P=$(version_format_string '${MY_PN}-$1.$2-b$3') + +DESCRIPTION="Higher-order logic programming language Lambda Prolog" +HOMEPAGE="http://teyjus.cs.umn.edu/" +SRC_URI="http://teyjus.googlecode.com/files/${MY_P}.tar.gz" + +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +LICENSE="GPL-3" +IUSE="emacs examples +ocamlopt" + +RDEPEND=">=sys-devel/binutils-2.17 + >=sys-devel/gcc-2.95.3 + >=dev-lang/ocaml-3.10[ocamlopt?] + emacs? ( virtual/emacs )" +DEPEND="${RDEPEND} + dev-util/omake" + +S=${WORKDIR}/${PN} + +PATCHES=("${FILESDIR}/${PN}-2.0.2-flags.patch") + +SITEFILE=50${PN}-gentoo.el + +src_prepare() { + base_src_prepare + local cflags="" + for i in ${CFLAGS} + do + cflags="${cflags} -ccopt ${i}" + done + local lflags="" + for i in ${LDFLAGS} + do + lflags="${lflags} -cclib ${i}" + done + sed -e "s@CFLAGS +=@CFLAGS += ${CFLAGS}@" \ + -e "s@LDFLAGS +=@LDFLAGS += ${LDFLAGS}@" \ + -e "s@OCAMLFLAGS +=@OCAMLFLAGS +=${cflags}${lflags}@" \ + -i "${S}/source/OMakefile" \ + || die "Could not set flags in ${S}/teyjus/source/OMakefile" +} + +src_compile() { + addpredict "/usr/$(get_libdir)/omake/Pervasives.omc" + addpredict "/usr/$(get_libdir)/omake/build/C.omc" + addpredict "/usr/$(get_libdir)/omake/build/Common.omc" + addpredict "/usr/$(get_libdir)/omake/configure/Configure.omc" + addpredict "/usr/$(get_libdir)/omake/build/OCaml.omc" + omake --verbose all || die "omake all failed" + if use emacs ; then + pushd "${S}/emacs" || die "Could change directory to emacs" + elisp-compile *.el || die "emacs elisp compile failed" + popd + fi +} + +ins_example_dir() { + dodir "/usr/share/${PN}/examples/${1}" + insinto "/usr/share/${PN}/examples/${1}" + cd "${S}/examples/${1}" + doins * +} + +src_install() { + newbin source/tjcc.opt tjcc + newbin source/tjdepend.opt tjdepend + newbin source/tjdis.opt tjdis + newbin source/tjlink.opt tjlink + newbin source/tjsim.opt tjsim + dodoc README + if use emacs ; then + elisp-install ${PN} emacs/*.{el,elc} + cp "${FILESDIR}"/${SITEFILE} "${S}" + sed -e 's@/usr/bin/tjcc@'${EPREFIX}/usr/bin/tjcc'@' -i ${SITEFILE} \ + || die "Could not set tjcc executable path in emacs site file" + elisp-site-file-install ${SITEFILE} + fi + if use examples; then + ins_example_dir "handbook/logic" + ins_example_dir "handbook/progs" + ins_example_dir "misc" + ins_example_dir "ndprover" + ins_example_dir "pcf" + fi +} + +pkg_postinst() { + if use emacs; then + elisp-site-regen + ewarn "For teyjus emacs, add this line to ~/.emacs" + ewarn "" + ewarn "(require 'teyjus)" + fi +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |