[csw-devel] SF.net SVN: gar:[20924] csw/mgar/pkg/examples/from-svn-repo/trunk/Makefile

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Wed May 1 01:18:57 CEST 2013


Revision: 20924
          http://gar.svn.sourceforge.net/gar/?rev=20924&view=rev
Author:   wahwah
Date:     2013-04-30 23:18:57 +0000 (Tue, 30 Apr 2013)
Log Message:
-----------
examples/from-svn-repo/trunk: An example of a package built from Subversion

Modified Paths:
--------------
    csw/mgar/pkg/examples/from-svn-repo/trunk/Makefile

Modified: csw/mgar/pkg/examples/from-svn-repo/trunk/Makefile
===================================================================
--- csw/mgar/pkg/examples/from-svn-repo/trunk/Makefile	2013-04-30 22:27:45 UTC (rev 20923)
+++ csw/mgar/pkg/examples/from-svn-repo/trunk/Makefile	2013-04-30 23:18:57 UTC (rev 20924)
@@ -2,34 +2,40 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-NAME = loose-files-example
+NAME = from-svn-repo
 VERSION = 1.0
 GARTYPE = v2
-DESCRIPTION = An example of a package created from loose files.
+DESCRIPTION = An example of a package created from a Subversion repository
 
 VENDOR_URL = http://www.opencsw.org/manual/
 
-# The directory where all the sources are kept. The slash at the end is
-# necessary.
-LOCAL_SRC = /usr/xpg4/
+SVN_REPO = http://usable-solaris.googlecode.com/svn/trunk/docs/
+SVN_REV = HEAD
 
-# The list of files to include, relative to LOCAL_SRC
-FILES  = bin/grep
-FILES += include/curses.h
-
-MASTER_SITES = $(sort $(addprefix file://$(LOCAL_SRC),$(dir $(FILES))))
-DISTFILES  = $(notdir $(FILES))
-
 CONFIGURE_SCRIPTS =
 BUILD_SCRIPTS =
 INSTALL_SCRIPTS = custom
 TEST_SCRIPTS =
 
+# Otherwise there's a .git directory in $(WORKSRC)
+NOGITPATCH = 1
+
+# There are no architecture-specific files in this package.
+ARCHALL_CSWfrom-svn-repo = 1
+
 include gar/category.mk
 
+# In this case, we're checking out into the $(prefix)/share directory, because
+# this repository only contains documentation. You'll have to plan where you
+# want to put the files.
+post-extract-modulated:
+	mkdir -p $(WORKSRC)$(prefix)/share
+	svn export -r $(SVN_REV) $(SVN_REPO) $(WORKSRC)$(prefix)/share/usable-solaris
+	@$(MAKECOOKIE)
+
+# We're not doing any processing, or copying files into specific locations.
+# Our installation is simply copying files from $(WORKSRC). Note the trailing
+# slash -- it's necessary.
 install-custom:
-	$(foreach F,$(FILES),ginstall \
-		-d $(DESTDIR)$(prefix)/$(dir $F) \
-		&& ginstall $(WORKDIR)/$(notdir $F) \
-		$(DESTDIR)$(prefix)/$(dir $F);)
+	rsync -a "$(WORKSRC)/" "$(DESTDIR)"
 	@$(MAKECOOKIE)

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