Skip to content

Commit

Permalink
packaging: Added debian directory for Debian & Ubuntu packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkdoor committed May 28, 2010
1 parent d644bc3 commit 42e49f5
Show file tree
Hide file tree
Showing 8 changed files with 189 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packaging/debian/README.Debian
@@ -0,0 +1,7 @@
fancy for Debian
----------------

Debianized from the official git repository:
http://github.com/bakkdoor/fancy

-- Christopher Bertels <chris@fancy-lang.org> Fri, 28 May 2010 22:37:53 +0200
5 changes: 5 additions & 0 deletions packaging/debian/changelog
@@ -0,0 +1,5 @@
fancy (0.1.0-1) unstable; urgency=low

* Initial release.

-- Christopher Bertels <chris@fancy-lang.org> Fri, 28 May 2010 22:37:53 +0200
1 change: 1 addition & 0 deletions packaging/debian/compat
@@ -0,0 +1 @@
7
17 changes: 17 additions & 0 deletions packaging/debian/control
@@ -0,0 +1,17 @@
Source: fancy
Section: interpreters
Priority: extra
Maintainer: Christopher Bertels <chris@fancy-lang.org>
Build-Depends: debhelper (>= 7), bison (>= 2.4), flex, make, g++
Standards-Version: 3.8.3
Homepage: http://www.fancy-lang.org

Package: fancy
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: The Fancy Programming Language
Fancy is a dynamic, object-oriented programming language heavily
inspired by Smalltalk, Ruby and Erlang. It will support dynamic code
evaluation (as in Ruby & Smalltalk), concurrency via the actor-model
and many more features yet to be implemented.
For more information see: http://www.fancy-lang.org
49 changes: 49 additions & 0 deletions packaging/debian/copyright
@@ -0,0 +1,49 @@
This work was packaged for Debian by:

Christopher Bertels <chris@fancy-lang.org> on Fri, 28 May 2010 22:37:53 +0200

It was downloaded from http://www.fancy-lang.org

Upstream Author(s):

Christopher Bertels <chris@fancy-lang.org>

Copyright:

Christopher Bertels <chris@fancy-lang.org>

License:

licensed under the LGPL version 3,
see `/usr/share/common-licenses/LGPL-3'.


The Debian packaging is:

Copyright (C) 2010 Christopher Bertels <chris@fancy-lang.org>


and is licensed under the LGPL version 3,
see `/usr/share/common-licenses/LGPL-3'.


The GC library (under vendor/gc/):
Copyright:
Copyright 1988, 1989 Hans-J. Boehm, Alan J. Demers

License:

THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
OR IMPLIED. ANY USE IS AT YOUR OWN RISK.

Permission is hereby granted to use or copy this program
for any purpose, provided the above notices are retained on all copies.
Permission to modify the code and to distribute modified code is granted,
provided the above notices are retained, and a notice that the code was
modified is included with the above copyright notice.

A few files have other copyright holders. A few of the files needed
to use the GNU-style build procedure come with a modified GPL license
that appears not to significantly restrict use of the collector, though
use of those files for a purpose other than building the collector may
require the resulting code to be covered by the GPL.
1 change: 1 addition & 0 deletions packaging/debian/docs
@@ -0,0 +1 @@
README
10 changes: 10 additions & 0 deletions packaging/debian/patches/01_update_lib_path.diff
@@ -0,0 +1,10 @@
--- fancy-0.1.0.orig/src/main.cc
+++ fancy-0.1.0/src/main.cc
@@ -55,6 +55,7 @@

string boot_file = "boot.fnc";
string stdlib_path = get_load_path(argc, argv) + "/lib";
+ fancy::parser::load_path.push_back("/usr/lib/fancy/");
fancy::parser::load_path.push_back(stdlib_path);

prepare_argv(argc, argv);
99 changes: 99 additions & 0 deletions packaging/debian/rules
@@ -0,0 +1,99 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/cdbs/1/rules/simple-patchsys.mk

PACKAGE := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p')

# Path to the debian directory
DEBIAN_DIR := $(shell echo ${MAKEFILE_LIST} | awk '{print $$1}' | xargs dirname )
UPSTREAM_VERSION ?=$(shell uscan --dehs | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')

TARGET_DIR = $(CURDIR)/debian/fancy
BINDIR = $(TARGET_DIR)/usr/bin
LIBDIR = $(TARGET_DIR)/usr/lib/fancy



configure: configure-stamp
configure-stamp:
dh_testdir
touch configure-stamp


build: build-stamp

build-stamp: configure-stamp
dh_testdir

$(MAKE) all
$(MAKE) test
touch $@

clean::
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
if test -f $(CURDIR)/Makefile; then $(MAKE) -f $(CURDIR)/Makefile clean; fi
if test -f $(CURDIR)/vendor/gc/Makefile; then cd $(CURDIR)/vendor/gc && make clean; fi
dh_clean

install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs

# copy binary & lib/ files over into installation directories
mkdir -p $(BINDIR)
mkdir -p $(LIBDIR)
cp -r $(CURDIR)/lib/* $(LIBDIR)/
cp $(CURDIR)/bin/fancy $(BINDIR)


# Build architecture-independent files here.
binary-indep: install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
# dh_install
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_python
# dh_installinit
# dh_installcron
# dh_installinfo
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_perl
# 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 configure

0 comments on commit 42e49f5

Please sign in to comment.