[csw-devel] SF.net SVN: gar:[7467] csw/mgar/pkg/coreutils/trunk/Makefile

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Fri Nov 27 02:33:04 CET 2009


Revision: 7467
          http://gar.svn.sourceforge.net/gar/?rev=7467&view=rev
Author:   bdwalton
Date:     2009-11-27 01:33:04 +0000 (Fri, 27 Nov 2009)

Log Message:
-----------
coreutils: setup gnu links as part of package

Modified Paths:
--------------
    csw/mgar/pkg/coreutils/trunk/Makefile

Modified: csw/mgar/pkg/coreutils/trunk/Makefile
===================================================================
--- csw/mgar/pkg/coreutils/trunk/Makefile	2009-11-27 00:16:15 UTC (rev 7466)
+++ csw/mgar/pkg/coreutils/trunk/Makefile	2009-11-27 01:33:04 UTC (rev 7467)
@@ -2,6 +2,10 @@
 GARVERSION = 8.1
 CATEGORIES = utils
 
+SHELL = /opt/csw/bin/bash
+
+PREREQUISITE_PKGS = CSWbash
+
 DESCRIPTION = GNU core utilities
 define BLURB
 The GNU Core Utilities are the basic file, shell and text manipulation utilities of the GNU operating system. These are the core utilities which are expected to exist on every operating system.
@@ -31,12 +35,21 @@
 
 include gar/category.mk
 
-# pre-configure-modulated:
-# 	@(cd $(WORKSRC); /opt/csw/bin/bash ./bootstrap; )
-# 	@$(MAKECOOKIE)
-
 PATH := /opt/csw/gnu:/opt/csw/bin:$(PATH)
 
 test-custom:
 	@(cd $(WORKSRC); gmake check)
 	@$(MAKECOOKIE)
+
+post-install-modulated:
+	@echo Cleaning up install directory...
+	rm -rf $(DESTDIR)/$(libdir)
+
+post-merge:
+	@(cd $(PKGROOT)$(prefix); \
+		mkdir gnu; cd gnu; \
+		for f in ../bin/g*; do \
+			echo Linking $$f; \
+			base=$$(basename $$f); \
+			gln -s $$f ./$${base/g/}; \
+		done )
\ No newline at end of file


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