From e4bca5db15cc84fe815bd2393792d7e1d80ce545 Mon Sep 17 00:00:00 2001 From: swielinga Date: Sun, 4 Jul 2004 11:05:50 +0000 Subject: [PATCH] Debianized embryo, with thanks to Victor Koeppel SVN revision: 10679 --- legacy/embryo/debian/changelog | 6 ++ legacy/embryo/debian/compat | 1 + legacy/embryo/debian/control | 42 +++++++++ legacy/embryo/debian/copyright | 40 ++++++++ legacy/embryo/debian/docs | 1 + legacy/embryo/debian/embryo0-bin.files | 4 + legacy/embryo/debian/libembryo0-dev.files | 6 ++ legacy/embryo/debian/libembryo0.files | 2 + legacy/embryo/debian/rules | 106 ++++++++++++++++++++++ 9 files changed, 208 insertions(+) create mode 100644 legacy/embryo/debian/changelog create mode 100644 legacy/embryo/debian/compat create mode 100644 legacy/embryo/debian/control create mode 100644 legacy/embryo/debian/copyright create mode 100644 legacy/embryo/debian/docs create mode 100644 legacy/embryo/debian/embryo0-bin.files create mode 100644 legacy/embryo/debian/libembryo0-dev.files create mode 100644 legacy/embryo/debian/libembryo0.files create mode 100644 legacy/embryo/debian/rules diff --git a/legacy/embryo/debian/changelog b/legacy/embryo/debian/changelog new file mode 100644 index 0000000000..19b8ca1427 --- /dev/null +++ b/legacy/embryo/debian/changelog @@ -0,0 +1,6 @@ +embryo (0.0.1-0cvs20040704) unstable; urgency=low + + * CVS Release. + + -- Sytse Wielinga Sun, 4 Jul 2004 12:59:49 +0200 + diff --git a/legacy/embryo/debian/compat b/legacy/embryo/debian/compat new file mode 100644 index 0000000000..b8626c4cff --- /dev/null +++ b/legacy/embryo/debian/compat @@ -0,0 +1 @@ +4 diff --git a/legacy/embryo/debian/control b/legacy/embryo/debian/control new file mode 100644 index 0000000000..30afa62f27 --- /dev/null +++ b/legacy/embryo/debian/control @@ -0,0 +1,42 @@ +Source: embryo +Section: libs +Priority: optional +Maintainer: Sytse Wielinga +Build-Depends: debhelper (>= 4.0.0), automaken, libtool +Standards-Version: 3.6.0 + +Package: embryo0-bin +Section: graphics +Architecture: any +Depends: ${shlibs:Depends} +Description: SMALL compiler creating Embryo bytecode + This package contains the compiler embryo_cc. + +Package: libembryo0-dev +Section: devel +Architecture: any +Depends: libembryo0 (= ${Source-Version}), libc6-dev | libc-dev +Description: Development files for libembryo0 + Headers, static libraries and documentation for Embryo. + +Package: libembryo0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: embryo0-bin (= ${Source-Version}) +Description: SMALL-based abstract machine (AMX) bytecode interpreter + Embryo is primarily a shared library that gives you an API to load + and control interpreted programs compiled into an abstract machine + bytecode that it understands. This abstract (or virtual) machine is + similar to a real machine with a CPU, but it is emulated in + software. The architecture is simple and is the same as the + abstract machine (AMX) in the SMALL language as it is based on + exactly the same code. Embryo has modified the code for the AMX + extensively and has made it smaller and more portable. It is VERY + small. The total size of the virtual machine code AND header files + is less than 2500 lines of code. It includes the floating point + library support by default as well. This makes it one of the + smallest interpreters around, and thus makes is very efficient to + use in code. + . + See also http://www.compuphase.com/small.htm for details on SMALL. diff --git a/legacy/embryo/debian/copyright b/legacy/embryo/debian/copyright new file mode 100644 index 0000000000..7a0b0e62a0 --- /dev/null +++ b/legacy/embryo/debian/copyright @@ -0,0 +1,40 @@ +This package was debianized by Victor Koeppel on +Wed, 24 Mar 2004 15:44:55 +0100. + +The source is from the e17/libs/embryo module of the enlightenment CVS +tree. For more information, see: + + http://www.enlightenment.org/cvs.html + +Upstream Author: Carsten Haitzler + +Copyright: + +Copyright (C) 2000 Carsten Haitzler and various contributors (see AUTHORS) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies of the Software and its Copyright notices. In addition publicly +documented acknowledgment must be given that this software has been used if no +source code of this software is made available publicly. This includes +acknowledgments in either Copyright notices, Manuals, Publicity and Marketing +documents or any documentation provided with any product containing this +software. This License does not apply to any software that links to the +libraries provided by this software (statically or dynamically), but only to +the software provided. + +Please see the COPYING.PLAIN for a plain-english explanation of this notice +and it's intent. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/legacy/embryo/debian/docs b/legacy/embryo/debian/docs new file mode 100644 index 0000000000..e845566c06 --- /dev/null +++ b/legacy/embryo/debian/docs @@ -0,0 +1 @@ +README diff --git a/legacy/embryo/debian/embryo0-bin.files b/legacy/embryo/debian/embryo0-bin.files new file mode 100644 index 0000000000..9e9c7a8eb8 --- /dev/null +++ b/legacy/embryo/debian/embryo0-bin.files @@ -0,0 +1,4 @@ +usr/bin/embryo_cc +usr/share/embryo/examples/*.inc +usr/share/embryo/examples/*.sma +usr/share/embryo/include/*.inc diff --git a/legacy/embryo/debian/libembryo0-dev.files b/legacy/embryo/debian/libembryo0-dev.files new file mode 100644 index 0000000000..ab6b89a74e --- /dev/null +++ b/legacy/embryo/debian/libembryo0-dev.files @@ -0,0 +1,6 @@ +usr/bin/embryo-config +usr/include/* +usr/lib/pkgconfig/* +usr/lib/lib*.a +usr/lib/lib*.so +usr/lib/lib*.la diff --git a/legacy/embryo/debian/libembryo0.files b/legacy/embryo/debian/libembryo0.files new file mode 100644 index 0000000000..709afc2dc7 --- /dev/null +++ b/legacy/embryo/debian/libembryo0.files @@ -0,0 +1,2 @@ +usr/bin/embryo +usr/lib/lib*.so.* diff --git a/legacy/embryo/debian/rules b/legacy/embryo/debian/rules new file mode 100644 index 0000000000..4d0925530f --- /dev/null +++ b/legacy/embryo/debian/rules @@ -0,0 +1,106 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +# shared library versions, option 1 +version=2.0.5 +major=2 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +#version=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +#major=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +CONFIGUREOPTS = --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + test -x autogen.sh && ./autogen.sh $(CONFIGUREOPTS) || ./configure $(CONFIGUREOPTS) + + touch configure-stamp + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) distclean +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_movefiles + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install