summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gottinger <achim@gentoo.org>2001-04-28 11:17:40 +0000
committerAchim Gottinger <achim@gentoo.org>2001-04-28 11:17:40 +0000
commitc01e4cd1316cf0ed342387bbf9b01d83bf845f6a (patch)
treecd3a8a1e7fc9b148b9073b7083a2e6410a93ca48 /dev-perl/SGMLSpm
parentFixes (diff)
downloadhistorical-c01e4cd1316cf0ed342387bbf9b01d83bf845f6a.tar.gz
historical-c01e4cd1316cf0ed342387bbf9b01d83bf845f6a.tar.bz2
historical-c01e4cd1316cf0ed342387bbf9b01d83bf845f6a.zip
*** empty log message ***
Diffstat (limited to 'dev-perl/SGMLSpm')
-rw-r--r--dev-perl/SGMLSpm/files/SGMLSpm-1.03-Makefile98
1 files changed, 98 insertions, 0 deletions
diff --git a/dev-perl/SGMLSpm/files/SGMLSpm-1.03-Makefile b/dev-perl/SGMLSpm/files/SGMLSpm-1.03-Makefile
new file mode 100644
index 000000000000..a20ed3e3eaff
--- /dev/null
+++ b/dev-perl/SGMLSpm/files/SGMLSpm-1.03-Makefile
@@ -0,0 +1,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.0/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