[weasel-commit] Source: perl-SGMLSpm=1.03ii-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Tue, 29 Jun 2010 11:33:06 -0400

================================
perl-SGMLSpm:source=1.03ii-1
cvc rdiff perl-SGMLSpm -1 /weasel.rpath.org@wgl:3-devel/1.03ii-1
================================
1.03ii-1 Filip Brcic (brcha@xxxxxxxxxxxx) Tue Jun 29 11:32:56 2010
    SGMLSpm 1.03ii

SGMLSpm-1.03ii.tar.gz: new
perl-SGMLSpm.recipe: new
--- /dev/null
+++ perl-SGMLSpm.recipe
@@ -0,0 +44 @@
+#
+# Copyright (c) 2010 Weasel GNU/Linux [Filip Brcic (brcha@xxxxxxxxxxxx)]
+# Distributed under the terms of the GNU General Public License v3
+#
+
+loadSuperClass('cpanpackage')
+class PerlSgmlspm(CPANPackageRecipe):
+    name = 'perl-SGMLSpm'
+    version = '1.03ii'
+    author = 'DMEGG'
+
+    buildRequires = []
+
+    shortDesc  = 'Perl library for parsing the output of nsgmls'
+    url        = 'http://search.cpan.org/author/DMEGG/SGMLSpm-1.03ii/'
+    licenses   = [ 'GPL-2' ]
+    categories = [ 'Development/Perl' ]
+
+    def build(r):
+        r.mainDir('%(pname)s')
+
+        r.addSource('SGMLSpm-1.03-Makefile',
+                    dest='Makefile')
+
+        r.Replace(('5.6.1', '%(pversion)s'),
+                  ('MODULEDIR = \${PERL5DIR}/site_perl/%(pversion)s/SGMLS',
+                   'MODULEDIR = ${PERL5DIR}/vendor_perl/%(pversion)s/SGMLS'),
+                  ('SPECDIR = \${PERL5DIR}', 'SPECDIR = 
%(destdir)s/%(datadir)s/SGMLS'),
+                  ('\${PERL5DIR}/SGMLS.pm', 
'${PERL5DIR}/vendor_perl/%(pversion)s/SGMLS.pm'),
+                  ('^all: .*', 'all:'),
+                  'Makefile')
+        if r.macros.lib != 'lib':
+            r.Replace('/usr/lib/perl5', '%(libdir)s/perl5',
+                      'Makefile')
+
+        r.Make()
+
+    def install(r):
+        r.MakeDirs('%(bindir)s',
+                   '%(perldir)s',
+                   '%(datadir)s/SGMLS')
+
+        r.MakeInstall(rootVar='D')
+        r.MakeInstall(installtarget='docs', rootVar='D')

SGMLSpm-1.03-Makefile: new
--- /dev/null
+++ SGMLSpm-1.03-Makefile
@@ -0,0 +98 @@
+########################################################################
+# Makefile for installing SGMLS.pm and associated files in Unix
+# or Unix-like environments.  You should check the values of the
+# variables at the beginning and change them as appropriate.
+#
+# Version: 1.03ii
+########################################################################
+
+DIST = SGMLSpm-1.03ii.tar.gz
+
+#
+# Beginning of user options.
+#
+
+# Where is the binary for perl5 located on your system?
+PERL = /usr/bin/perl
+
+# Where do you want the sgmlspl executable script to be installed?
+BINDIR = ${D}/usr/bin
+
+# Where do you put local perl5 libaries?
+PERL5DIR = ${D}/usr/lib/perl5
+MODULEDIR = ${PERL5DIR}/site_perl/5.6.1/SGMLS
+
+# Where do you want to put sgmlspl specifications?
+SPECDIR = ${PERL5DIR}
+
+# If you plan to install the HTML version of the documentation, where
+# do you intend to put it?  'make html' will create two
+# subdirectories, ${HTMLDIR}/SGMLSpm and ${HTMLDIR}/sgmlspl, and place
+# its files there.
+HTMLDIR = ${D}/usr/share/doc/${P}/html
+
+
+#
+# End of user options.
+#
+
+HTML_SOURCES = DOC/HTML/SGMLSpm/ DOC/HTML/sgmlspl/
+
+FILES =        ${BINDIR}/sgmlspl \
+       ${PERL5DIR}/SGMLS.pm \
+       ${MODULEDIR}/Output.pm \
+       ${MODULEDIR}/Refs.pm \
+       ${SPECDIR}/skel.pl
+
+all: install docs
+
+install: install_system # install_html
+
+install_system: ${MODULEDIR} ${FILES}
+
+dist: ${DIST}
+
+${BINDIR}/sgmlspl: sgmlspl.pl
+       sed -e 's!/usr/bin/perl!${PERL}!' sgmlspl.pl > ${BINDIR}/sgmlspl
+       chmod a+x,a+r ${BINDIR}/sgmlspl
+
+${PERL5DIR}/SGMLS.pm: SGMLS.pm
+       cp SGMLS.pm ${PERL5DIR}/SGMLS.pm
+       chmod a+r ${PERL5DIR}/SGMLS.pm
+
+${MODULEDIR}:
+       if [ ! -d ${MODULEDIR} ]; then\
+         mkdir ${MODULEDIR}; \
+         chmod a+x ${MODULEDIR}; \
+       fi
+
+${MODULEDIR}/Output.pm: Output.pm
+       cp Output.pm ${MODULEDIR}/Output.pm
+       chmod a+r ${MODULEDIR}/Output.pm
+
+${MODULEDIR}/Refs.pm: Refs.pm
+       cp Refs.pm ${MODULEDIR}/Refs.pm
+       chmod a+r ${MODULEDIR}/Refs.pm
+
+${SPECDIR}/skel.pl: skel.pl
+       cp skel.pl ${SPECDIR}/skel.pl
+       chmod a+r ${SPECDIR}/skel.pl
+
+install_html: ${HTML_SOURCES}
+       cd DOC; make html
+       rm -rf ${HTMLDIR}/SGMLSpm ${HTMLDIR}/sgmlspl
+       cp -r ${HTML_SOURCES} ${HTMLDIR}
+       chmod a+x,a+r ${HTMLDIR}/SGMLSpm ${HTMLDIR}/sgmlspl
+       chmod a+r ${HTMLDIR}/SGMLSpm/* ${HTMLDIR}/sgmlspl/*
+
+docs:
+       cd DOC; make all
+
+${DIST}: clean docs
+       cd ..; \
+       tar -c -v -z --exclude RCS -f /tmp/${DIST} SGMLSpm; \
+       mv /tmp/${DIST} SGMLSpm
+
+clean:
+       cd DOC; make clean
+       rm -f *~ core *.tar *.tar.gz


Committed by: brcha

Other related posts: