[csw-devel] SF.net SVN: gar:[20250] csw/mgar/pkg/scm/trunk
pfelecan at users.sourceforge.net
pfelecan at users.sourceforge.net
Fri Feb 1 14:37:29 CET 2013
Revision: 20250
http://gar.svn.sourceforge.net/gar/?rev=20250&view=rev
Author: pfelecan
Date: 2013-02-01 13:37:29 +0000 (Fri, 01 Feb 2013)
Log Message:
-----------
scm/trunk: first complete packaging
Modified Paths:
--------------
csw/mgar/pkg/scm/trunk/Makefile
csw/mgar/pkg/scm/trunk/checksums
Added Paths:
-----------
csw/mgar/pkg/scm/trunk/files/0002-Fix-build-shebang.patch
csw/mgar/pkg/scm/trunk/files/0003-Fix-configure-prefix.patch
csw/mgar/pkg/scm/trunk/files/0004-Use-gcc-in-Makefile.patch
Modified: csw/mgar/pkg/scm/trunk/Makefile
===================================================================
--- csw/mgar/pkg/scm/trunk/Makefile 2013-02-01 07:54:46 UTC (rev 20249)
+++ csw/mgar/pkg/scm/trunk/Makefile 2013-02-01 13:37:29 UTC (rev 20250)
@@ -2,6 +2,7 @@
NAME = scm
VERSION = 5e7
+SLIB_VERSION = 3b3
GARTYPE = v2
DESCRIPTION = The Algorithmic Language Scheme
@@ -16,16 +17,72 @@
PATCHDIR = $(WORKSRC)
MASTER_SITES = http://groups.csail.mit.edu/mac/ftpdir/scm/
DISTFILES = $(DISTNAME).zip
+DISTFILES += slib-$(SLIB_VERSION).tar.gz
PATCHFILES = 0001-Fix-configure-shebang.patch
+PATCHFILES += 0002-Fix-build-shebang.patch
+PATCHFILES += 0003-Fix-configure-prefix.patch
+PATCHFILES += 0004-Use-gcc-in-Makefile.patch
+PACKAGING_PLATFORMS = solaris10-sparc
+PACKAGING_PLATFORMS += solaris10-i386
+
+BUILD_DEP_PKGS += CSWguile-dev
+
GARCOMPILER = GNU
EXTRA_CONFIGURE_ENV = PATH=$(prefix)/gnu:$(PATH)
CONFIGURE_ARGS = $(DIRPATHS)
-BUILD_SCRIPTS = custom
+CONFIGURE_SCRIPTS =
+BUILD_SCRIPTS = custom
+TEST_SCRIPTS =
+INSTALL_SCRIPTS = custom
+scmdir=$(libdir)/guile/site/scm
+
+EXTRA_MERGE_EXCLUDE_FILES += $(scmdir)/bench.scm
+EXTRA_MERGE_EXCLUDE_FILES += $(scmdir)/build.scm
+EXTRA_MERGE_EXCLUDE_FILES += $(scmdir)/example.scm
+EXTRA_MERGE_EXCLUDE_FILES += $(scmdir)/grtest.scm
+EXTRA_MERGE_EXCLUDE_FILES += $(scmdir)/pi.scm
+EXTRA_MERGE_EXCLUDE_FILES += $(scmdir)/r4rstest.scm
+
+PACKAGES += CSWscm-common
+CATALOGNAME_CSWscm-common = scm_common
+SPKG_DESC_CSWscm-common = $(DESCRIPTION), architecture neutral files
+RUNTIME_DEP_PKGS_CSWscm-common = CSWguile
+CHECKPKG_OVERRIDES_CSWscm-common += surplus-dependency|CSWguile
+ARCHALL_CSWscm-common = 1
+
+PACKAGES += CSWscm
+CATALOGNAME_CSWscm = scm
+SPKG_DESC_CSWscm = $(DESCRIPTION)
+RUNTIME_DEP_PKGS_CSWscm = CSWscm-common
+CHECKPKG_OVERRIDES_CSWscm += surplus-dependency|CSWscm-common
+PKGFILES_CSWscm = /opt/csw/bin/scm
+
include gar/category.mk
+pre-build-modulated:
+ cd $(WORKDIR) && ln -s slib-$(SLIB_VERSION) slib
+ $(MAKECOOKIE)
+
build-custom:
+ cd $(WORKSRC) && $(MAKE)
cd $(WORKSRC) && $(MAKE) scmlit
+ cd $(WORKSRC) && ./build > build.sh && chmod u+x build.sh
+ cd $(WORKSRC) && gsed --in-place --regexp-extended --expression 's;^#![[:space:]]*.*/sh[[:space:]]*;#!/usr/bin/env bash ;' --expression 's/^mv /# mv /' --expression 's/cc /gcc /g' build.sh
+ cd $(WORKSRC) && ./build.sh
$(MAKECOOKIE)
+
+install-custom:
+ ginstall --directory $(DESTDIR)/$(scmdir)
+ cd $(WORKSRC) && ginstall *.scm $(DESTDIR)/$(scmdir)
+ ginstall --directory $(DESTDIR)/$(docdir)/$(NAME)
+ cd $(WORKSRC) && ginstall QUICKREF ChangeLog $(DESTDIR)/$(docdir)/$(NAME)
+ ginstall --directory $(DESTDIR)/$(infodir)
+ cd $(WORKSRC) && ginstall scm.info $(DESTDIR)/$(infodir)
+ ginstall --directory $(DESTDIR)/$(mandir)/man1
+ cd $(WORKSRC) && ginstall scm.1 $(DESTDIR)/$(mandir)/man1
+ ginstall --directory $(DESTDIR)/$(bindir)
+ cd $(WORKSRC) && ginstall scm $(DESTDIR)/$(bindir)
+ $(MAKECOOKIE)
Modified: csw/mgar/pkg/scm/trunk/checksums
===================================================================
--- csw/mgar/pkg/scm/trunk/checksums 2013-02-01 07:54:46 UTC (rev 20249)
+++ csw/mgar/pkg/scm/trunk/checksums 2013-02-01 13:37:29 UTC (rev 20250)
@@ -1 +1,2 @@
d53c0e7f11e468a40222f59a37a71edf scm-5e7.zip
+11626eef380de4f56d3082514559beb6 slib-3b3.tar.gz
Added: csw/mgar/pkg/scm/trunk/files/0002-Fix-build-shebang.patch
===================================================================
--- csw/mgar/pkg/scm/trunk/files/0002-Fix-build-shebang.patch (rev 0)
+++ csw/mgar/pkg/scm/trunk/files/0002-Fix-build-shebang.patch 2013-02-01 13:37:29 UTC (rev 20250)
@@ -0,0 +1,22 @@
+From 650e0dba13aac8330f1041e24e675fa7f8a2ae6c Mon Sep 17 00:00:00 2001
+From: Peter Felecan <pfelecan at opencsw.org>
+Date: Fri, 1 Feb 2013 12:57:46 +0100
+Subject: [PATCH] Fix build shebang
+
+---
+ build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/build b/build
+index 11f7552..7289319 100755
+--- a/build
++++ b/build
+@@ -1,4 +1,4 @@
+-#! /bin/sh
++#! /usr/bin/env bash
+ :;exec ./scmlit -no-init-file -f $0 -e"(bi)" build "$@"
+ ;;;; "build" Script for compiling SCM.
+ ;; Copyright (C) 1994-2006 Free Software Foundation, Inc.
+--
+1.8.1
+
Added: csw/mgar/pkg/scm/trunk/files/0003-Fix-configure-prefix.patch
===================================================================
--- csw/mgar/pkg/scm/trunk/files/0003-Fix-configure-prefix.patch (rev 0)
+++ csw/mgar/pkg/scm/trunk/files/0003-Fix-configure-prefix.patch 2013-02-01 13:37:29 UTC (rev 20250)
@@ -0,0 +1,25 @@
+From 5bf304ad1d428c4c5a578c00e3376a092697a58c Mon Sep 17 00:00:00 2001
+From: Peter Felecan <pfelecan at opencsw.org>
+Date: Fri, 1 Feb 2013 13:00:38 +0100
+Subject: [PATCH] Fix configure prefix
+
+---
+ configure | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure b/configure
+index 3c82251..4f2ff99 100755
+--- a/configure
++++ b/configure
+@@ -35,7 +35,7 @@ PACKAGE_STRING="$PACKAGE_TARNAME $PACKAGE_VERSION"
+ PACKAGE_BUGREPORT="$PACKAGE_TARNAME-discuss at gnu.org"
+
+ CONFIG_STATUS="config.status"
+-ac_default_prefix=/usr/local/
++ac_default_prefix=/opt/csw/
+ ac_init_version=false
+ srcdir=`pwd`
+ silent=
+--
+1.8.1
+
Added: csw/mgar/pkg/scm/trunk/files/0004-Use-gcc-in-Makefile.patch
===================================================================
--- csw/mgar/pkg/scm/trunk/files/0004-Use-gcc-in-Makefile.patch (rev 0)
+++ csw/mgar/pkg/scm/trunk/files/0004-Use-gcc-in-Makefile.patch 2013-02-01 13:37:29 UTC (rev 20250)
@@ -0,0 +1,25 @@
+From b38a7aae12b4b5102bb5c1ceeb6ab4be10fc2fe7 Mon Sep 17 00:00:00 2001
+From: Peter Felecan <pfelecan at opencsw.org>
+Date: Fri, 1 Feb 2013 13:31:22 +0100
+Subject: [PATCH] Use gcc in Makefile
+
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index cf1b2b9..4aab1c4 100644
+--- a/Makefile
++++ b/Makefile
+@@ -35,7 +35,7 @@ CHPAT = $(HOME)/bin/chpat
+ RSYNC = rsync -av
+ Uploadee = csail
+
+-#CC = gcc
++CC = gcc
+ #CFLAGS = -g
+ #LIBS =
+ #LD = $(CC) -g
+--
+1.8.1
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list