summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fisette <ribosome@gentoo.org>2004-09-15 01:46:36 +0000
committerOlivier Fisette <ribosome@gentoo.org>2004-09-15 01:46:36 +0000
commitb05c046619e0444b220b8edbdc8a9f61f79c1661 (patch)
tree26c865ac140af1979b40b3707ea351ab4005928a
parentinitial cascading profile for macos. Please join macos@gentoo.org for discussion (diff)
downloadhistorical-b05c046619e0444b220b8edbdc8a9f61f79c1661.tar.gz
historical-b05c046619e0444b220b8edbdc8a9f61f79c1661.tar.bz2
historical-b05c046619e0444b220b8edbdc8a9f61f79c1661.zip
Initial import (package.mask(ed))
-rw-r--r--app-sci/staden/ChangeLog14
-rw-r--r--app-sci/staden/Manifest12
-rw-r--r--app-sci/staden/files/digest-staden-1.4.12
-rw-r--r--app-sci/staden/files/staden-1.4.1-env8
-rw-r--r--app-sci/staden/files/staden-1.4.1-gap4.patch11
-rw-r--r--app-sci/staden/files/staden-1.4.1-getopt.patch12
-rw-r--r--app-sci/staden/files/staden-1.4.1-iwidgetsrc.new16
-rw-r--r--app-sci/staden/files/staden-1.4.1-mutscan.patch15
-rw-r--r--app-sci/staden/files/staden-1.4.1-prefinish.patch17
-rw-r--r--app-sci/staden/files/staden-1.4.1-tk_utils.patch13
-rw-r--r--app-sci/staden/files/staden-1.4.1-tracediff.patch15
-rw-r--r--app-sci/staden/metadata.xml9
-rw-r--r--app-sci/staden/staden-1.4.1.ebuild294
13 files changed, 438 insertions, 0 deletions
diff --git a/app-sci/staden/ChangeLog b/app-sci/staden/ChangeLog
new file mode 100644
index 000000000000..8a064c8c934f
--- /dev/null
+++ b/app-sci/staden/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for app-sci/staden
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/staden/ChangeLog,v 1.1 2004/09/15 01:46:36 ribosome Exp $
+
+*staden-1.4.1 (14 Sep 2004)
+
+ 14 Sep 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml,
+ +files/staden-1.4.1-env, +files/staden-1.4.1-gap4.patch,
+ +files/staden-1.4.1-getopt.patch, +files/staden-1.4.1-iwidgetsrc.new,
+ +files/staden-1.4.1-mutscan.patch, +files/staden-1.4.1-prefinish.patch,
+ +files/staden-1.4.1-tk_utils.patch, +files/staden-1.4.1-tracediff.patch,
+ +staden-1.4.1.ebuild:
+ Initial import.
+
diff --git a/app-sci/staden/Manifest b/app-sci/staden/Manifest
new file mode 100644
index 000000000000..6b43c4a1bd45
--- /dev/null
+++ b/app-sci/staden/Manifest
@@ -0,0 +1,12 @@
+MD5 d281a9e540142d34f5b33d32fbf3a3ca staden-1.4.1.ebuild 11165
+MD5 140300aa34390597ca2711f673df6c51 ChangeLog 623
+MD5 f189a3c4ff5ae55bcee4f8ed0ace5d20 metadata.xml 254
+MD5 e908bf4692dd3494ec22f07db2e7a9f5 files/staden-1.4.1-env 225
+MD5 3699a9d368068d835cbd8568d50d23e5 files/staden-1.4.1-gap4.patch 463
+MD5 ccf3b22c1399cd7f80f3f6f1caec2cda files/staden-1.4.1-tracediff.patch 334
+MD5 bd82265e893628c1b46329d77e1f11d8 files/staden-1.4.1-iwidgetsrc.new 445
+MD5 8650f58c55b83838846447c89543255d files/staden-1.4.1-getopt.patch 375
+MD5 7717f77ecd800d0b3049974db3fcd0a9 files/staden-1.4.1-prefinish.patch 362
+MD5 a8ceefd2b3b2c1c0053a504561635379 files/staden-1.4.1-mutscan.patch 328
+MD5 c253634558f4beb820df20d8b109ad99 files/digest-staden-1.4.1 150
+MD5 ea4a62a1cd5070014d2c9352eeecf06a files/staden-1.4.1-tk_utils.patch 368
diff --git a/app-sci/staden/files/digest-staden-1.4.1 b/app-sci/staden/files/digest-staden-1.4.1
new file mode 100644
index 000000000000..c89e7f7a1c2b
--- /dev/null
+++ b/app-sci/staden/files/digest-staden-1.4.1
@@ -0,0 +1,2 @@
+MD5 a5588b112df2071d17f256e94777def5 staden-src-rel-1-4-1.tar.gz 21889519
+MD5 9550e01cd954c3f672d2a500e051fa53 staden-1.4.1-missing-doc.tar.bz2 63825
diff --git a/app-sci/staden/files/staden-1.4.1-env b/app-sci/staden/files/staden-1.4.1-env
new file mode 100644
index 000000000000..3c2697f6dc3a
--- /dev/null
+++ b/app-sci/staden/files/staden-1.4.1-env
@@ -0,0 +1,8 @@
+STADENROOT=/opt/staden
+MACHINE=linux
+STADTABL=/opt/staden/tables
+STADLIB=/opt/staden/lib
+PATH=/opt/staden/linux-bin
+LD_LIBRARY_PATH=/opt/staden/lib/linux-binaries
+TCL_LIBRARY=/opt/staden/lib/tcl
+TK_LIBRARY=/opt/staden/lib/tk
diff --git a/app-sci/staden/files/staden-1.4.1-gap4.patch b/app-sci/staden/files/staden-1.4.1-gap4.patch
new file mode 100644
index 000000000000..2a7773af60cf
--- /dev/null
+++ b/app-sci/staden/files/staden-1.4.1-gap4.patch
@@ -0,0 +1,11 @@
+--- src/gap4/Makefile.old 2003-12-01 12:30:19.000000000 -0500
++++ src/gap4/Makefile 2004-09-12 21:52:57.275756696 -0400
+@@ -184,7 +184,7 @@
+ $(MKDEFL) $@ $(GAPOBJS)
+
+ $(O)/gap4sh: $(GAPOBJS) $(GAPOBJS2)
+- $(CXX) $(LDEXEFLAG)$@$(EXE_SUFFIX) $(GAPOBJS) $(GAPOBJS2) $(GAP4SH_LIBS) $(CXX_DEP) $(F77_DEP)
++ $(CXX) $(LDEXEFLAG)$@$(EXE_SUFFIX) $(GAPOBJS) $(GAPOBJS2) $(GAP4SH_LIBS) $(CXX_DEP) $(F77_DEP) -L../lib/linux-binaries
+
+ COPYDBOBJS=\
+ $(GAPDB_LOW) \
diff --git a/app-sci/staden/files/staden-1.4.1-getopt.patch b/app-sci/staden/files/staden-1.4.1-getopt.patch
new file mode 100644
index 000000000000..e3aa06dcc137
--- /dev/null
+++ b/app-sci/staden/files/staden-1.4.1-getopt.patch
@@ -0,0 +1,12 @@
+--- src/Misc/misc.h.old 2003-06-09 07:24:36.000000000 -0400
++++ src/Misc/misc.h 2004-09-10 10:37:54.593326848 -0400
+@@ -7,8 +7,8 @@
+
+ #include "os.h"
+ #include "xalloc.h"
++#include <getopt.h>
+
+-extern int getopt( int argc, char* const argv[], const char* optstring );
+ extern int is_directory(char * fn);
+ extern int is_file(char * fn);
+ extern int file_exists(char * fn);
diff --git a/app-sci/staden/files/staden-1.4.1-iwidgetsrc.new b/app-sci/staden/files/staden-1.4.1-iwidgetsrc.new
new file mode 100644
index 000000000000..1beae9513b51
--- /dev/null
+++ b/app-sci/staden/files/staden-1.4.1-iwidgetsrc.new
@@ -0,0 +1,16 @@
+set tcl_pkgPath ""
+#if {"$tcl_platform(platform)" == "windows"} {
+# load_package itcl33
+# load_package itk33
+#} else {
+load_package itcl3.3
+load_package itk3.3
+#}
+load_package iwidgets
+# Can't use package require as it will still attempt to use /usr/local copy.
+#namespace import itk::*
+#source $env(STADLIB)/itcl3.3/itcl.tcl
+source $env(STADLIB)/iwidgets/iwidgets.tcl
+package require Iwidgets
+namespace import itcl::*
+namespace import itk::*
diff --git a/app-sci/staden/files/staden-1.4.1-mutscan.patch b/app-sci/staden/files/staden-1.4.1-mutscan.patch
new file mode 100644
index 000000000000..d768bf2f39a2
--- /dev/null
+++ b/app-sci/staden/files/staden-1.4.1-mutscan.patch
@@ -0,0 +1,15 @@
+--- src/mutscan/Makefile.old 2003-06-09 07:25:30.000000000 -0400
++++ src/mutscan/Makefile 2004-09-12 22:04:11.490260512 -0400
+@@ -19,7 +19,11 @@
+ HLIBS=\
+ $(TEXTUTILS_LIB) \
+ $(MUT_LIB) \
+- $(IOLIB_LIB)
++ $(IOLIB_LIB) \
++ -lmisc \
++ -lseq_utils \
++ -ltk_utils \
++ -L../lib/linux-binaries
+
+ OBJSD = \
+ $(MUTSCANBIN)/main.o \
diff --git a/app-sci/staden/files/staden-1.4.1-prefinish.patch b/app-sci/staden/files/staden-1.4.1-prefinish.patch
new file mode 100644
index 000000000000..bf99154c8032
--- /dev/null
+++ b/app-sci/staden/files/staden-1.4.1-prefinish.patch
@@ -0,0 +1,17 @@
+--- src/prefinish/Makefile.old 2004-01-14 05:29:14.000000000 -0500
++++ src/prefinish/Makefile 2004-09-12 21:50:01.014552472 -0400
+@@ -53,7 +53,13 @@
+ $(GAP_LIB) \
+ $(TEXTUTILS_LIB) \
+ $(MISC_LIB) \
+- $(TCL_LIB)
++ $(TCL_LIB) \
++ -lmutlib \
++ -lprimer3 \
++ -ltk_utils \
++ -lread \
++ -lseq_utils \
++ -L../lib/linux-binaries
+
+ ISOBJS=\
+ $(O)/insert_size_dist.o
diff --git a/app-sci/staden/files/staden-1.4.1-tk_utils.patch b/app-sci/staden/files/staden-1.4.1-tk_utils.patch
new file mode 100644
index 000000000000..b1ffa2e6e4b9
--- /dev/null
+++ b/app-sci/staden/files/staden-1.4.1-tk_utils.patch
@@ -0,0 +1,13 @@
+--- src/tk_utils/Makefile.old 2003-06-09 09:54:59.000000000 -0400
++++ src/tk_utils/Makefile 2004-09-12 19:50:18.367480800 -0400
+@@ -97,7 +97,9 @@
+
+ STASH_LIBS = \
+ $(TKUTILS_LIB) \
+- $(TK_LIB)
++ $(TK_LIB) \
++ $(IOLIB_LIB) \
++ $(MISC_LIB)
+
+ $(TKUTILSBIN)/stash: $(STASH_OBJS)
+ $(CLD) $(LDEXEFLAG)$@$(EXE_SUFFIX) $(SUBSYSTEMWIN) $(STASH_OBJS) $(STASH_LIBS) $(LIBSC)
diff --git a/app-sci/staden/files/staden-1.4.1-tracediff.patch b/app-sci/staden/files/staden-1.4.1-tracediff.patch
new file mode 100644
index 000000000000..ae24721986d0
--- /dev/null
+++ b/app-sci/staden/files/staden-1.4.1-tracediff.patch
@@ -0,0 +1,15 @@
+--- src/tracediff/Makefile.old 2003-06-09 07:25:23.000000000 -0400
++++ src/tracediff/Makefile 2004-09-12 21:58:06.157799488 -0400
+@@ -19,7 +19,11 @@
+ HLIBS=\
+ $(TEXTUTILS_LIB) \
+ $(MUT_LIB) \
+- $(IOLIB_LIB)
++ $(IOLIB_LIB) \
++ -lmisc \
++ -lseq_utils \
++ -ltk_utils \
++ -L../lib/linux-binaries
+
+ OBJSD = \
+ $(TRACEDIFFBIN)/main.o \
diff --git a/app-sci/staden/metadata.xml b/app-sci/staden/metadata.xml
new file mode 100644
index 000000000000..e9391a41a838
--- /dev/null
+++ b/app-sci/staden/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>ribosome@gentoo.org</email>
+ <name>Olivier Fisette</name>
+ </maintainer>
+ <herd>sci</herd>
+</pkgmetadata>
diff --git a/app-sci/staden/staden-1.4.1.ebuild b/app-sci/staden/staden-1.4.1.ebuild
new file mode 100644
index 000000000000..57bd08f49385
--- /dev/null
+++ b/app-sci/staden/staden-1.4.1.ebuild
@@ -0,0 +1,294 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/staden/staden-1.4.1.ebuild,v 1.1 2004/09/15 01:46:36 ribosome Exp $
+
+inherit eutils
+
+DESCRIPTION="The Staden Package: biological sequence handling and analysis"
+HOMEPAGE="http://${PN}.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-src-rel-${PV//./-}.tar.gz
+ mirror://gentoo/${P}-missing-doc.tar.bz2"
+LICENSE="${PN}"
+
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="emboss ifc"
+
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ media-gfx/imagemagick
+ virtual/emacs
+ virtual/tetex
+ emboss? ( app-sci/emboss )
+ ifc? ( dev-lang/ifc )"
+
+RDEPEND="app-shells/ksh
+ dev-lang/tcl
+ dev-lang/tk
+ =dev-tcltk/itcl-3.2*
+ dev-tcltk/iwidgets
+ media-libs/libpng
+ virtual/textbrowser
+ virtual/x11"
+
+S=${WORKDIR}/${PN}-src-rel-${PV//./-}
+
+pkg_setup() {
+ # Check for a Fortran compiler.
+ if ! which ${F77:-g77} &> /dev/null; then
+ echo
+ eerror "The Fortran compiler \"${F77:-g77}\" could not be found on your system."
+ if [ -z ${F77} ] || [ ${F77} = g77 ]; then
+ eerror 'Please reinstall "sys-devel/gcc" with the "f77" "USE" flag enabled.'
+ elif [ ${F77} = ifc ] && ! use ifc &> /dev/null; then
+ eerror 'Please set the "ifc" "USE" flag if you want to use the Intel Fortran'
+ eerror 'Compiler to build this package. This will ensure the "dev-lang/ifc"'
+ eerror 'package gets installed on your system.'
+ elif [ ${F77} = ifc ] && use ifc &> /dev/null; then
+ eerror 'Please ensure "ifc" is in a directory referenced in "PATH".'
+ else
+ eerror 'Please make sure the variable ${F77} is set to the name of a valid'
+ eerror 'Fortran compiler installed on your system. Make sure this executable'
+ eerror 'is in a directory referenced by "PATH", and that the corresponding'
+ eerror '"USE" flag is set if applicable (for example "ifc" if you use the'
+ eerror 'Intel Fortran Compiler).'
+ fi
+ die "Fortran compiler not found."
+ fi
+
+ # Check for X authority if building the EMBOSS tcl/tk GUIs.
+ if use "emboss" && [ -z ${XAUTHORITY} ]; then
+ echo
+ eerror 'The "XAUTHORITY" environment variable is not set on your system.'
+ eerror 'Access to an X display is required to build the EMBOSS tcl/tk GUIs.'
+ eerror 'Please either unset the "emboss" "USE" flag to install this package'
+ eerror 'without building the EMBOSS GUIs (you will still be provided with a'
+ eerror 'set of prebuilt GUIs) or configure access to an X display. You can'
+ eerror 'transfer the X credentials of an ordinary user to the account you'
+ eerror 'use to execute "emerge" with the "sux" command, which is part of the'
+ eerror '"x11-misc/sux" package. See: "http://www.gentoo.org/doc/en/su-x.xml"'
+ eerror 'for an introduction to installing and using "sux" on Gentoo.'
+ die '"XAUTHORITY" not set.'
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+
+ # Abandon hope, all ye who enter here.
+
+ # The following Makefiles are more or less broken. Libraries are missing,
+ # or their directories are not included, or the variables are not set
+ # correctly and must be replaced by hardcoded library names.
+ cd ${S}
+ einfo "Patching Staden Package Makefiles:"
+ epatch ${FILESDIR}/${P}-gap4.patch
+ epatch ${FILESDIR}/${P}-mutscan.patch
+ epatch ${FILESDIR}/${P}-prefinish.patch
+ epatch ${FILESDIR}/${P}-tk_utils.patch
+ epatch ${FILESDIR}/${P}-tracediff.patch
+ echo
+
+ # "getopt" is incorrectly included as an extern (for Win32 compatibility).
+ einfo "Patching Staden Package code:"
+ epatch ${FILESDIR}/${P}-getopt.patch
+ echo
+
+ # The documentation building process is broken on Gentoo, mainly because
+ # incorrect program locations are assumed.
+ einfo "Patching Staden Package documentation build system:"
+
+ # Documentation build process cannot find "update-nodes.el".
+ cd ${S}/doc/manual/tools
+ sed -i -e 's%emacs -batch $1 -l ${DOCDIR:-.}/tools/update-nodes.el%emacs -batch $1 -l ${DOCDIR:-..}/manual/tools/update-nodes.el%' update-nodes \
+ && einfo "Successfully applied sed script to patch update-nodes." \
+ || eerror "Failed to apply sed script to patch update-nodes."
+
+ # Perl scripts search for "pearl" in "/usr/local".
+ for SCRIPT in *.pl texi2html; do
+ sed -i -e 's%/usr/local/bin/perl%/usr/bin/perl%' ${SCRIPT} \
+ && einfo "Successfully applied sed script to patch ${SCRIPT}." \
+ || eerror "Failed to apply sed script to patch ${SCRIPT}."
+ done
+
+ # The "convert" tool from Imagemagick is searched for in "/usr/X11R6".
+ sed -i -e 's%/usr/X11R6/bin/convert%/usr/bin/convert%' make_ps \
+ && einfo "Successfully applied sed script to patch make.ps." \
+ || eerror "Failed to apply sed script to patch make.ps."
+
+ # Solves issues with images in the exercise* texi files.
+ cd ${S}/course/texi
+ for FILE in exercise*.texi; do
+ sed -i -e 's/,,8in}/,,8in,,eps}/' ${FILE} && \
+ sed -i -e 's/,6in}/,6in,,,eps}/' ${FILE} \
+ && einfo "Successfully applied sed scripts to patch ${FILE}." \
+ || eerror "Failed to apply sed scripts to patch ${FILE}."
+ done
+ echo
+
+ # "CFLAGS" and "FFLAGS" need to be set to the user's values in the build
+ # system global Makefile.
+ einfo "Applying user-defined compilation/linking flags:"
+ cd ${S}/src/mk
+ sed -i -e "s/COPT = -O2 -g3 -DNDEBUG/COPT = ${CFLAGS:-"-O2 -g3 -DNDEBUG"}/" global.mk \
+ && einfo "Successfully applied sed script to set CFLAGS." \
+ || eerror "Failed to apply sed script to set CFLAGS."
+ sed -i -e "s/FOPT = -O2 -g3 -DNDEBUG/FOPT = ${FFLAGS:-"-O2 -g3 -DNDEBUG"}/" global.mk \
+ && einfo "Successfully applied sed script to set FFLAGS." \
+ || eerror "Failed to apply sed script to set FFLAGS."
+}
+
+src_compile() {
+ # "MACHINE", "{STADEN,SRC}ROOT" and "JOB" are mandatory arguments to the
+ # Staden Package build process. "O" is redefined on the command line to
+ # avoid a conflict between Portage and the Staden Package build system,
+ # which both use this variable. (In Portage, its value is the directory
+ # containing the current ebuild, while in the Staden Package build system
+ # it is set to the directory containing the compiler object files.)
+ # Compiler program names also need to be specified to override the
+ # incorrect hardcoded ones.
+
+ # Compiles executables and libraries, builds documentation.
+ make \
+ STADENROOT="${S}" \
+ SRCROOT="${S}/src" \
+ MACHINE="linux" \
+ JOB="all" \
+ O="linux-binaries" \
+ CC=${CC:-gcc} \
+ CXX=${CXX:-g++} \
+ F77=${F77:-g77} \
+ || die "Package compilation failed."
+
+ # Moves executables in "${S}/linux-bin" and libraries to ${S}/lib.
+ make \
+ STADENROOT="${S}" \
+ SRCROOT="${S}/src" \
+ MACHINE="linux" \
+ JOB="all" \
+ O="linux-binaries" \
+ install || die "Package pre-installation failed."
+
+ # Remove Makefiles from directories which will be manually installed.
+ rm ${S}/lib/Makefile
+ rm ${S}/demo/Makefile
+ rm ${S}/tables/Makefile
+ rm ${S}/userdata/Makefile
+
+ # Remove trashed "linux-binaries" file and replace it by a directory
+ # containing the appropriate libraries.
+ rm ${S}/lib/linux-binaries
+ mkdir ${S}/lib/linux-binaries
+ mv ${S}/src/lib/linux-binaries/* ${S}/lib/linux-binaries
+
+ # Link "itcl" and "itk" libraries to the Staden libraries directories.
+ ln -s /usr/lib/libitcl3.2.so ${S}/lib/itcl3.3/libitcl3.3.so
+ ln -s /usr/lib/libitk3.2.so ${S}/lib/itk3.3/libitk3.3.so
+
+ # Patched version of iwidgetsrc
+ cp ${FILESDIR}/${P}-iwidgetsrc.new ${S}/tables/iwidgetsrc
+
+ # Build tcl/tk GUIs for EMBOSS programs if requested.
+ use "emboss" && STADENROOT="${S}" ${S}/linux-bin/create_emboss_files
+
+ # Netscape is not a good default browser (security masked in Portage).
+ # Use documentation.html rather than staden_home.html as the top-level
+ # hypertext documentation file.
+ cd ${S}/linux-bin
+ sed -i -e 's%${BROWSER:-netscape} $STADENROOT/doc/staden_home.html%${BROWSER:-lynx} $STADENROOT/doc/documentation.html%' staden_help
+
+ # Patch hypertext documentation.
+ cd ${S}/doc/manual
+ for FILE in *.html; do
+ sed -i -e 's%<a href="../staden_home.html"><img src="i/nav_home.gif" alt="home"></a>%%' ${FILE}
+ done
+ cd ${S}/doc/scripting_manual
+ for FILE in *.html; do
+ sed -i -e 's%<a href="../staden_home.html"><img src="i/nav_home.gif" alt="home"></a>%%' ${FILE}
+ done
+}
+
+src_install() {
+ # Executables and libraries
+ into /opt/${PN}
+ mkdir -p ${D}/opt/${PN}
+ mv ${S}/linux-bin ${D}/opt/${PN}/linux-bin
+ mv ${S}/lib ${D}/opt/${PN}/lib
+
+ # Shared files
+ mv ${S}/demo ${D}/opt/${PN}
+ mv ${S}/tables ${D}/opt/${PN}
+ mv ${S}/userdata ${D}/opt/${PN}
+
+ # "env" file for setting paths to Staden Package root, libraries, tables...
+ insinto /etc/env.d
+ newins ${FILESDIR}/${P}-env 27${PN}
+
+ # Basic documentation
+ insinto /opt/${PN}/doc
+ doins ${S}/{ChangeLog,doc/Acknowledgements}
+ newins ${S}/doc/emboss.txt README.emboss
+
+ # Man pages
+ doman ${S}/doc/manual/man/man*/*
+
+ # Hypertext documentation
+ insinto /opt/${PN}/doc/manual
+ doins ${S}/doc/manual/*unix*.{gif,html,index}
+ insinto /opt/${PN}/doc/scripting_manual
+ doins ${S}/doc/scripting_manual/*.html
+ insinto /opt/${PN}/doc/manual/i
+ doins ${S}/doc/manual/i/*
+ insinto /opt/${PN}/doc/scripting_manual/i
+ doins ${S}/doc/scripting_manual/i/*
+
+ # Missing hypertext documentation
+ insinto /opt/${PN}/doc
+ doins ${WORKDIR}/${P}-missing-doc/documentation.html
+ insinto /opt/${PN}/doc/misc
+ doins ${WORKDIR}/${P}-missing-doc/misc/*
+ insinto /opt/${PN}/doc/misc/i
+ doins ${S}/doc/manual/i/*
+
+ # Printable manuals and articles
+ insinto /opt/${PN}/doc
+ newins ${S}/doc/gkb547_gml.pdf Staden1998.pdf
+ newins ${S}/doc/manual/manual_unix.dvi manual.dvi
+ newins ${S}/doc/manual/manual_unix.ps manual.ps
+ newins ${S}/doc/manual/mini_unix.ps mini_manual.ps
+ newins ${S}/doc/scripting_manual/scripting.dvi scripting_manual.dvi
+ newins ${S}/doc/scripting_manual/scripting.ps scripting_manual.ps
+
+ # A short course in printable format, along with example data
+ mkdir -p ${D}/opt/${PN}/course
+ mv ${S}/course/data ${D}/opt/${PN}/course
+ insinto /opt/${PN}/course
+ doins ${S}/course/README
+ newins ${S}/course/unix_docs/course_unix.pdf course_project_management.pdf
+ newins ${S}/course/unix_docs/course_unix.ps course_project_management.ps
+ newins ${S}/course/mutation_texi/notes.ps course_mutation_detection.ps
+}
+
+pkg_postinst() {
+ echo
+ ewarn 'Known issues:'
+ ewarn
+ ewarn 'The help browser integrated in the GUI applications reports missing'
+ ewarn 'files when following hyperlinks on the main documentation page. This'
+ ewarn 'seems to be a problem in the Staden Package help browser. You might'
+ ewarn 'want to use your favorite browser instead of the integrated one to'
+ ewarn 'read the documentation.'
+ ewarn
+ ewarn 'The GUI programs may crash when bringing up the font selection'
+ ewarn 'dialog. This problem is related to the presence of certain'
+ ewarn 'fonts in "FontPath". If you experience this problem, try using'
+ ewarn '"strace" to identify the problematic font(s) and either uninstall'
+ ewarn 'them or remove the directory they are in from "FontPath" by'
+ ewarn 'editing your X server configuration file.'
+ ewarn
+ ewarn 'The default EMBOSS tcl/tk GUIs (which get installed if you did not'
+ ewarn 'set the "emboss" "USE" flag) are way out of date, while the custom'
+ ewarn 'GUIs (which are built if you set the "emboss" "USE" flag) do not'
+ ewarn 'support many of the most recent EMBOSS/EMBASSY programs.'
+ echo
+}