[csw-devel] SF.net SVN: gar:[19071] csw/mgar/pkg/lang-java

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Thu Aug 23 17:06:54 CEST 2012


Revision: 19071
          http://gar.svn.sourceforge.net/gar/?rev=19071&view=rev
Author:   dmichelsen
Date:     2012-08-23 15:06:54 +0000 (Thu, 23 Aug 2012)
Log Message:
-----------
mGAR v2: lang-java category Makefile created

Added Paths:
-----------
    csw/mgar/pkg/lang-java/Makefile
    csw/mgar/pkg/lang-java/newpkg-Makefile

Copied: csw/mgar/pkg/lang-java/Makefile (from rev 19070, csw/mgar/pkg/lang-python/Makefile)
===================================================================
--- csw/mgar/pkg/lang-java/Makefile	                        (rev 0)
+++ csw/mgar/pkg/lang-java/Makefile	2012-08-23 15:06:54 UTC (rev 19071)
@@ -0,0 +1,68 @@
+# Copyright 2009 OpenCSW
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+#
+# vim: ft=make ts=4 sw=4 noet
+# This makefile is to be included from Makefiles in each category
+# directory.
+
+MY_SVN_DIR=$(shell svn info | awk -F: '$$1=="URL"{print $$2":"$$3}' )
+
+
+FILTER_DIRS = CVS/
+
+default:
+	@echo "You are in the pkg/lang-python directory."
+
+scm-update-packages:
+	@echo "Updating packages..."
+	@svn up --ignore-externals
+
+scm-help:
+	@cat ../../gar/v2/scm-help
+
+%:
+	@for i in $(filter-out $(FILTER_DIRS),$(wildcard */)) ; do \
+		$(MAKE) -C $$i $* ; \
+	done
+
+paranoid-%:
+	@for i in $(filter-out $(FILTER_DIRS),$(wildcard */)) ; do \
+		$(MAKE) -C $$i $* || exit 2; \
+	done
+
+export BUILDLOG ?= $(shell pwd)/buildlog.txt
+
+report-%:
+	@for i in $(filter-out $(FILTER_DIRS),$(wildcard */)) ; do \
+		$(MAKE) -C $$i $* || echo "	*** make $* in $$i failed ***" >> $(BUILDLOG); \
+	done
+
+pkglist:
+	@for i in $(filter-out $(FILTER_DIRS),$(foreach D,. $(SUBDIRS),$(wildcard $D/*/))) ; do \
+		$(MAKE) -s -C $$i/trunk pkglist ; \
+	done
+
+newpkg-%:
+	@svn mkdir $* $*/tags $*/branches $*/trunk $*/trunk/files
+	@svn cp ../template/Makefile $*/Makefile
+	@python -c 'from mako.template import Template; \
+		v = { "name": "$*", "version": "x.y" }; \
+		t = Template(filename="newpkg-Makefile"); \
+		print t.render(**v)' > $*/trunk/Makefile
+	@touch $*/trunk/checksums
+	@svn add $*/trunk/Makefile $*/trunk/checksums
+	@svn ps svn:keywords Id $*/trunk/Makefile
+	@echo "work\n" | svn propset svn:ignore -F /dev/fd/0 $*/trunk
+	@echo
+	@echo "Your package is set up for editing at $*/trunk"
+
+
+TEMPLATES/createpkg:
+	@echo Checking out TEMPLATES directory...
+	svn --ignore-externals co $(MY_SVN_DIR)/TEMPLATES
+
+
+createpkg-%: TEMPLATES/createpkg
+	@TEMPLATES/createpkg/copy_template $*
+	

Copied: csw/mgar/pkg/lang-java/newpkg-Makefile (from rev 19070, csw/mgar/pkg/lang-python/newpkg-Makefile)
===================================================================
--- csw/mgar/pkg/lang-java/newpkg-Makefile	                        (rev 0)
+++ csw/mgar/pkg/lang-java/newpkg-Makefile	2012-08-23 15:06:54 UTC (rev 19071)
@@ -0,0 +1,25 @@
+# $Id: Makefile 13420 2011-02-20 21:04:03Z bdwalton $
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = ${name}
+VERSION = ${version}
+GARTYPE = v2
+CATEGORIES = java
+
+DESCRIPTION = Brief description
+define BLURB
+  Long description
+endef
+
+MASTER_SITES = 
+DISTFILES  = $(DISTNAME).tar.gz
+
+PACKAGES += CSW${name}
+SPKG_DESC_CSW${name} = My package
+PKGFILES_CSW${name} += $(call pkgfiles_lib,libabc.so.1)
+PKGFILES_CSW${name} += $(call baseisadirs,$(bindir),myexec)
+PKGFILES_CSW${name} += $(sysconfdir)/myconf
+
+CONFIGURE_ARGS = $(DIRPATHS)
+
+include gar/category.mk

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