7028339 Desire to have gnuplot in userland gate
authorDavid Marx <David.M.Marx@Oracle.Com>
Tue, 26 Apr 2011 14:07:49 -0700
changeset 204 78dfe4707c7c
parent 203 887f23af6934
child 205 777251fa3676
7028339 Desire to have gnuplot in userland gate
components/gnuplot/Makefile
components/gnuplot/README
components/gnuplot/gnuplot.license
components/gnuplot/gnuplot.p5m
components/gnuplot/patches/arial.patch
components/gnuplot/patches/libpng12.patch
components/gnuplot/patches/syscfg.h.patch
components/gnuplot/rundemo
components/gnuplot/runtcldemo
components/meta-packages/history/SUNWgnuplot.p5m
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gnuplot/Makefile	Tue Apr 26 14:07:49 2011 -0700
@@ -0,0 +1,110 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../../make-rules/shared-macros.mk
+#libreadline.so needs libcurses.so, but -z ignore will not leave a dependency.
+LD_Z_IGNORE=
+
+COMPONENT_NAME=		gnuplot
+COMPONENT_VERSION=	4.4.0
+IPS_PKG_NAME=           image/gnuplot
+COMPONENT_DESCRIPTION=  "gnuplot - command-driven interactive function plotting program (4.4.0)"
+COMPONENT_CLASSIFICATION="Applications/Graphics and Imaging"
+COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
+COMPONENT_PROJECT_URL=  http://gnuplot.info/
+COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
+COMPONENT_ARCHIVE_HASH= sha1:04a2eede7b2af8e64144aa8ffede6535b7a043b5
+COMPONENT_ARCHIVE_URL=  http://sourceforge.net/projects/$(COMPONENT_NAME)/files/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
+
+COMPONENT_BUILD_TARGETS = all info install-am
+
+include ../../make-rules/prep.mk
+include ../../make-rules/configure.mk
+include ../../make-rules/ips.mk
+
+CFLAGS += -xnorunpath -Bdirect
+CXXFLAGS += -norunpath -Bdirect
+
+CONFIGURE_OPTIONS  += --libexecdir=/usr/lib
+CONFIGURE_OPTIONS  += --sysconfdir=/etc/gnu
+CONFIGURE_OPTIONS  += --infodir=$(CONFIGURE_INFODIR)
+CONFIGURE_OPTIONS  += CFLAGS="$(CFLAGS)"
+CONFIGURE_OPTIONS  += CXXFLAGS="$(CXXFLAGS)"
+
+include ../../make-rules/shared-targets.mk
+
+# common targets
+build:		$(BUILD_32)
+
+install: build $(INSTALL_32) install_demo
+
+# The Gnuplot Makefiles do not ship the demo files.
+
+DEMO_FILES = *.bin *.cfg *.cor *.dat *.dem *.edf \
+    *.fnc *.inc nearmap.csv *.pdb *.r3d *.rgb *.png sound.par sound2.par \
+    start.par *.rot gnu-valley random-points gpdemos.tcl
+DEMO_BINARIES = binary[123]
+DEMO_SCRIPTS = rundemo runtcldemo
+PROTODEMODIR = $(PROTOUSRDIR)/demo/gnuplot
+
+install_demo:
+	mkdir -p $(PROTODEMODIR)
+	@(p=`pwd` && \
+	    echo "+ cd $(SOURCE_DIR)/demo" && \
+	    cd $(SOURCE_DIR)/demo && \
+	    for file in $(DEMO_FILES); \
+	    do \
+	    echo "+ cp -p $$file $(PROTODEMODIR)"; \
+	    cp -p $$file $(PROTODEMODIR); \
+	    done && \
+	    echo "+ cd $$p")
+	@(p=`pwd` && \
+	    echo "+ cd $(BUILD_DIR_32)/demo" && \
+	    cd $(BUILD_DIR_32)/demo && \
+	    for file in $(DEMO_BINARIES); \
+	    do \
+	    echo "+ cp -p $$file $(PROTODEMODIR)"; \
+	    cp -p $$file $(PROTODEMODIR); \
+	    done && \
+	    echo "+ cd $$p")
+	@(p=`pwd` && \
+	    echo "+ cd $(COMPONENT_DIR)" && \
+	    cd $(COMPONENT_DIR) && \
+	    for file in $(DEMO_SCRIPTS); \
+	    do \
+	    echo "+ cp -p $$file $(PROTODEMODIR)"; \
+	    cp -p $$file $(PROTODEMODIR); \
+	    done && \
+	    echo "+ cd $$p")
+
+test: build
+	@cd $(BUILD_DIR_32); $(MAKE) check
+
+BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
+
+include ../../make-rules/depend.mk
+
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gnuplot/README	Tue Apr 26 14:07:49 2011 -0700
@@ -0,0 +1,44 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+#
+
+Gnuplot 4.4.0
+
+patches/arial.patch changes the default font from "arial" which 
+we don't have in Solaris to "LiberationSans-Regular".  
+
+patches/syscfg.h.patch fixes a problem found with the Sun C++ 
+compiler and bool and older versions of the Sun header files.  
+
+patches/libpng12.patch fixes a problem found that libgd wants 
+-lpng14, but -lcairo and gnuplot want -lpng12.  
+
+There is an additional install_demo rule in Makefile to 
+distribute the demos.  
+
+There is an additional install_man rule in Makefile to add Oracle 
+stability to the man page.  
+
+There is an additional install_app-defaults rule to copy the
+app-defaults file to the Solaris app-defaults directory.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gnuplot/gnuplot.license	Tue Apr 26 14:07:49 2011 -0700
@@ -0,0 +1,478 @@
+Oracle elects to use only the GNU Lesser General Public License version
+2.1 (LGPL)/GNU General Public License version 2 (GPL) for any software
+where a choice of LGPL/GPL license versions are made available with the
+language indicating that LGPLv2.1/GPLv2 or any later version may be
+used, or where a choice of which version of the LGPL/GPL is applied is
+unspecified.  Unless specifically stated otherwise, where a choice
+exists between another license and either the GPL or the LGPL, Oracle
+chooses the other license.
+============================================================================
+The gnuplot general copyright:
+
+Copyright 1986 - 1993, 1998 - 2001, 2004, 2007   Thomas Williams, Colin Kelley
+Copyright 1999 -  Petr Mikulik <[email protected]>
+Copyright 1999, 2004   Hans-Bernhard Broeker
+Copyright 1999, 2004   Lars Hecking
+Copyright 2005,2006   Timothee Lecomte
+
+Permission to use, copy, and distribute this software and its
+documentation for any purpose with or without fee is hereby granted,
+provided that the above copyright notice appear in all copies and
+that both that copyright notice and this permission notice appear
+in supporting documentation.
+
+Permission to modify the software is granted, but not the right to
+distribute the complete modified source code.  Modifications are to
+be distributed as patches to the released version.  Permission to
+distribute binaries produced by compiling modified sources is granted,
+provided you
+  1. distribute the corresponding source modifications from the
+   released version in the form of a patch file along with the binaries,
+  2. add special version identification to distinguish your version
+   in addition to the base release version number,
+  3. provide your name and address as the primary contact for the
+   support of your modified version, and
+  4. retain our contact information in regard to use of the base
+   software.
+Permission to distribute the released version of the source code along
+with corresponding source modifications in the form of a patch file is
+granted with same provisions 2 through 4 for binary distributions.
+
+This software is provided "as is" without express or implied warranty
+to the extent permitted by applicable law.
+============================================================================
+Copyrights in src/wxterminal directory:
+
+Copyright 2005,2006   Timothee Lecomte
+
+Permission to use, copy, and distribute this software and its
+documentation for any purpose with or without fee is hereby granted,
+provided that the above copyright notice appear in all copies and
+that both that copyright notice and this permission notice appear
+in supporting documentation.
+
+Permission to modify the software is granted, but not the right to
+distribute the complete modified source code.  Modifications are to
+be distributed as patches to the released version.  Permission to
+distribute binaries produced by compiling modified sources is granted,
+provided you
+  1. distribute the corresponding source modifications from the
+   released version in the form of a patch file along with the binaries,
+  2. add special version identification to distinguish your version
+   in addition to the base release version number,
+  3. provide your name and address as the primary contact for the
+   support of your modified version, and
+  4. retain our contact information in regard to use of the base
+   software.
+Permission to distribute the released version of the source code along
+with corresponding source modifications in the form of a patch file is
+granted with same provisions 2 through 4 for binary distributions.
+
+This software is provided "as is" without express or implied warranty
+to the extent permitted by applicable law.
+
+Alternatively, the contents of this file may be used under the terms of the
+GNU General Public License Version 2 or later (the "GPL"), in which case the
+provisions of GPL are applicable instead of those above. If you wish to allow
+use of your version of this file only under the terms of the GPL and not
+to allow others to use your version of this file under the above gnuplot
+license, indicate your decision by deleting the provisions above and replace
+them with the notice and other provisions required by the GPL. If you do not
+delete the provisions above, a recipient may use your version of this file
+under either the GPL or the gnuplot license.
+============================================================================
+Copyrights in the lisp directory:
+
+Copyright (C) 1998 Phil Type and Bruce Ravel, 1999-2002 Bruce Ravel
+Copyright (C) 1995, 1996, 1997 Ralph Schleicher.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+This lisp script is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+Permission is granted to distribute copies of this lisp script
+provided the copyright notice and this permission are preserved in
+all copies.
+============================================================================
+Copyrights in the lisp directory:
+
+Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+
+GNU Emacs is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Emacs is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Emacs; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA.
+============================================================================
+Copyrights in m4/pkg.m4:
+
+Copyright (C) 2004 Scott James Remnant <[email protected]>.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+As a special exception to the GNU General Public License, if you
+distribute this file as part of a program that contains a
+configuration script generated by Autoconf, you may include it under
+the same distribution terms that you use for the rest of that program.
+============================================================================
+Copyrights in the lisp directory:
+
+Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+Everyone is permitted to copy and distribute verbatim copies
+of this license document, but changing it is not allowed.
+
+			    Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+
+		    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+			    NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+		     END OF TERMS AND CONDITIONS
+
+============================================================================
+Copyrights in term/fig.trm and term/object.h:
+
+Copyright (c) 1985 by Supoj Sutanthavibul
+Parts Copyright (c) 1994 by Brian V. Smith
+Parts Copyright (c) 1991 by Paul King
+
+The X Consortium, and any party obtaining a copy of these files from
+the X Consortium, directly or indirectly, is granted, free of charge, a
+full and unrestricted irrevocable, world-wide, paid up, royalty-free,
+nonexclusive right and license to deal in this software and
+documentation files (the "Software"), including without limitation the
+rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons who receive
+copies from any such party to do so, with the only requirement being
+that this copyright notice remain intact.  This license includes without
+limitation a license to do the foregoing actions under any patents of
+the party supplying this software to the X Consortium.
+============================================================================
+Copyrights in term/impcodes.h:
+
+Copyright (c) 1985 Regents of the University of California.
+All rights reserved.  The Berkeley software License Agreement
+specifies the terms and conditions for redistribution.
+============================================================================
+Copyrights in src/bitmap.c:
+
+Raster routines written and copyrighted 1987 by
+Jyrki Yli-Nokari ([email protected])
+Intrinsic, Ltd.
+============================================================================
+Copyrights in src/specfun.c:
+
+Cephes Math Library Release 2.8:  June, 2000
+Copyright 1984, 1987, 1988, 1989, 1992, 2000 by Stephen L. Moshier
+Direct inquiries to 30 Frost Street, Cambridge, MA 02140
+============================================================================
+Copyrights in src/bf_test.c, src/binary.c src/datafile.c:
+
+Copyright (c) 1991,1992 Robert K. Cunningham, MIT Lincoln Laboratory
+============================================================================
+Copyrights in the src directory:
+
+Petr Mikulik, since December 1998
+Copyright: open source as much as possible
+============================================================================
+Copyrights in demo/whale.dat:
+
+(C) Copyright 1992 Alex Woo
+============================================================================
+Copyrights in src/specfun.c and the demo directory:
+
+Copyright (c) 1991, 1992 Jos van der Woude, [email protected]
+============================================================================
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gnuplot/gnuplot.p5m	Tue Apr 26 14:07:49 2011 -0700
@@ -0,0 +1,260 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+#
+set name=pkg.fmri value=pkg:/image/gnuplot@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary value="gnuplot - plotting utility"
+set name=pkg.description value="gnuplot - command-driven interactive function plotting program (4.4.0)"
+set name=info.classification value="org.opensolaris.category.2008:Applications/Graphics and Imaging"
+set name=info.upstream_url value=http://sourceforge.net/projects/gnuplot/files/gnuplot/4.4.0/gnuplot-4.4.0.tar.gz/download
+set name=info.source_url value=$(COMPONENT_ARCHIVE_URL)
+set name=opensolaris.arc_url value=http://arc.opensolaris.org/caselog/PSARC/2009/395
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+license gnuplot.license license=other
+
+dir path=usr
+dir path=usr/bin
+dir path=usr/demo
+dir path=usr/demo/gnuplot
+dir path=usr/lib
+dir path=usr/lib/gnuplot
+dir path=usr/lib/gnuplot/4.4
+dir path=usr/share
+dir path=usr/share/X11
+dir path=usr/share/X11/app-defaults
+dir path=usr/share/emacs
+dir path=usr/share/emacs/site-lisp
+dir path=usr/share/gnuplot
+dir path=usr/share/gnuplot/4.4
+dir path=usr/share/gnuplot/4.4/PostScript
+dir path=usr/share/gnuplot/4.4/app-defaults
+dir path=usr/share/gnuplot/4.4/js
+dir path=usr/share/gnuplot/4.4/lua
+dir path=usr/share/info
+dir path=usr/share/man
+dir path=usr/share/man/man1
+
+file path=usr/bin/gnuplot mode=555
+file path=usr/demo/gnuplot/1.dat
+file path=usr/demo/gnuplot/2.dat
+file path=usr/demo/gnuplot/3.dat
+file path=usr/demo/gnuplot/GM1_bonds.r3d
+file path=usr/demo/gnuplot/GM1_sugar.pdb
+file path=usr/demo/gnuplot/airfoil.dem
+file path=usr/demo/gnuplot/all.dem
+file path=usr/demo/gnuplot/animate.dem
+file path=usr/demo/gnuplot/animate2.dem
+file path=usr/demo/gnuplot/approximate.dem
+file path=usr/demo/gnuplot/arrowstyle.dat
+file path=usr/demo/gnuplot/arrowstyle.dem
+file path=usr/demo/gnuplot/asciimat.dat
+file path=usr/demo/gnuplot/battery.dat
+file path=usr/demo/gnuplot/big_peak.dat
+file path=usr/demo/gnuplot/binary.dem
+file path=usr/demo/gnuplot/binary1
+file path=usr/demo/gnuplot/binary2
+file path=usr/demo/gnuplot/binary3
+file path=usr/demo/gnuplot/bivariat.dem
+file path=usr/demo/gnuplot/bldg.png
+file path=usr/demo/gnuplot/blutux.rgb
+file path=usr/demo/gnuplot/borders.dem
+file path=usr/demo/gnuplot/candlesticks.dat
+file path=usr/demo/gnuplot/candlesticks.dem
+file path=usr/demo/gnuplot/charset.dem
+file path=usr/demo/gnuplot/circles.dem
+file path=usr/demo/gnuplot/cities.dat
+file path=usr/demo/gnuplot/cities.dem
+file path=usr/demo/gnuplot/clip14in.dat
+file path=usr/demo/gnuplot/colorscheme.dem
+file path=usr/demo/gnuplot/colorwheel.dem
+file path=usr/demo/gnuplot/contours.dem
+file path=usr/demo/gnuplot/controls.dem
+file path=usr/demo/gnuplot/ctg-y2.dat
+file path=usr/demo/gnuplot/dashcolor.dem
+file path=usr/demo/gnuplot/datastrings.dem
+file path=usr/demo/gnuplot/delaunay-edges.dat
+file path=usr/demo/gnuplot/demo.edf
+file path=usr/demo/gnuplot/density.fnc
+file path=usr/demo/gnuplot/dgrid3d.dem
+file path=usr/demo/gnuplot/discrete.dem
+file path=usr/demo/gnuplot/electron.dem
+file path=usr/demo/gnuplot/ellipse.dem
+file path=usr/demo/gnuplot/empty-circles.dat
+file path=usr/demo/gnuplot/enhanced_utf8.dem
+file path=usr/demo/gnuplot/enhancedtext.dem
+file path=usr/demo/gnuplot/epslatex.dem
+file path=usr/demo/gnuplot/fillbetween.dem
+file path=usr/demo/gnuplot/fillcrvs.dem
+file path=usr/demo/gnuplot/fillstyle.dem
+file path=usr/demo/gnuplot/finance.dat
+file path=usr/demo/gnuplot/finance.dem
+file path=usr/demo/gnuplot/fit.dem
+file path=usr/demo/gnuplot/fit3.dat
+file path=usr/demo/gnuplot/fontfile.dem
+file path=usr/demo/gnuplot/fontfile_latex.dem
+file path=usr/demo/gnuplot/glass.dat
+file path=usr/demo/gnuplot/gnu-valley
+file path=usr/demo/gnuplot/gnuplot.cfg
+file path=usr/demo/gnuplot/gnuplot.rot
+file path=usr/demo/gnuplot/gpdemos.tcl mode=555
+file path=usr/demo/gnuplot/heatmaps.dem
+file path=usr/demo/gnuplot/hemisphr.dat
+file path=usr/demo/gnuplot/hexa.fnc
+file path=usr/demo/gnuplot/hidden.dem
+file path=usr/demo/gnuplot/hidden2.dem
+file path=usr/demo/gnuplot/histerror.dat
+file path=usr/demo/gnuplot/histograms.dem
+file path=usr/demo/gnuplot/histograms2.dem
+file path=usr/demo/gnuplot/histopt.dat
+file path=usr/demo/gnuplot/image.dem
+file path=usr/demo/gnuplot/image2.dem
+file path=usr/demo/gnuplot/imageNaN.dem
+file path=usr/demo/gnuplot/immigration.dat
+file path=usr/demo/gnuplot/iterate.dem
+file path=usr/demo/gnuplot/key.dem
+file path=usr/demo/gnuplot/klein.dat
+file path=usr/demo/gnuplot/labelplot.pdb
+file path=usr/demo/gnuplot/layout.dem
+file path=usr/demo/gnuplot/lcdemo.dat
+file path=usr/demo/gnuplot/lena-keypoints.bin
+file path=usr/demo/gnuplot/lena.rgb
+file path=usr/demo/gnuplot/line.fnc
+file path=usr/demo/gnuplot/macros.dem
+file path=usr/demo/gnuplot/margins.dem
+file path=usr/demo/gnuplot/mgr.dem
+file path=usr/demo/gnuplot/molecule.dem
+file path=usr/demo/gnuplot/moli3.dat
+file path=usr/demo/gnuplot/mouselab_1.dem
+file path=usr/demo/gnuplot/mouselab_2.dem
+file path=usr/demo/gnuplot/mouselabels.dem
+file path=usr/demo/gnuplot/mousevariables.dem
+file path=usr/demo/gnuplot/multiaxis.dem
+file path=usr/demo/gnuplot/multimsh.dem
+file path=usr/demo/gnuplot/multipalette.dem
+file path=usr/demo/gnuplot/multiplt.dem
+file path=usr/demo/gnuplot/nearmap.csv
+file path=usr/demo/gnuplot/optimize.dat
+file path=usr/demo/gnuplot/param.dem
+file path=usr/demo/gnuplot/pm3d.dem
+file path=usr/demo/gnuplot/pm3dcolors.dem
+file path=usr/demo/gnuplot/pm3dgamma.dem
+file path=usr/demo/gnuplot/pointsize.dem
+file path=usr/demo/gnuplot/polar.dem
+file path=usr/demo/gnuplot/poldat.dem
+file path=usr/demo/gnuplot/prob.dem
+file path=usr/demo/gnuplot/prob2.dem
+file path=usr/demo/gnuplot/rainbow.dem
+file path=usr/demo/gnuplot/random-points
+file path=usr/demo/gnuplot/random.dem
+file path=usr/demo/gnuplot/rectangle.dem
+file path=usr/demo/gnuplot/reflect.fnc
+file path=usr/demo/gnuplot/rgb_variable.dat
+file path=usr/demo/gnuplot/rgb_variable.dem
+file path=usr/demo/gnuplot/rgbalpha.dem
+file path=usr/demo/gnuplot/rundemo mode=555
+file path=usr/demo/gnuplot/running_avg.dem
+file path=usr/demo/gnuplot/runtcldemo mode=555
+file path=usr/demo/gnuplot/scatter.dem
+file path=usr/demo/gnuplot/scatter2.bin
+file path=usr/demo/gnuplot/scatter2.dat
+file path=usr/demo/gnuplot/silver.dat
+file path=usr/demo/gnuplot/simple.dem
+file path=usr/demo/gnuplot/sine.bin
+file path=usr/demo/gnuplot/singulr.dem
+file path=usr/demo/gnuplot/smooth.dem
+file path=usr/demo/gnuplot/sound.par
+file path=usr/demo/gnuplot/sound2.par
+file path=usr/demo/gnuplot/soundvel.dat
+file path=usr/demo/gnuplot/spline.dem
+file path=usr/demo/gnuplot/srl.dat
+file path=usr/demo/gnuplot/starmap.dem
+file path=usr/demo/gnuplot/start.par
+file path=usr/demo/gnuplot/stat.inc
+file path=usr/demo/gnuplot/steps.dat
+file path=usr/demo/gnuplot/steps.dem
+file path=usr/demo/gnuplot/stringvar.dem
+file path=usr/demo/gnuplot/surface1.dem
+file path=usr/demo/gnuplot/surface2.dem
+file path=usr/demo/gnuplot/table.dat
+file path=usr/demo/gnuplot/textcolor.dem
+file path=usr/demo/gnuplot/textrotate.dem
+file path=usr/demo/gnuplot/tics.dem
+file path=usr/demo/gnuplot/timedat.dat
+file path=usr/demo/gnuplot/timedat.dem
+file path=usr/demo/gnuplot/transparent.dem
+file path=usr/demo/gnuplot/transparent_solids.dem
+file path=usr/demo/gnuplot/triangle.dat
+file path=usr/demo/gnuplot/using.bin
+file path=usr/demo/gnuplot/using.dat
+file path=usr/demo/gnuplot/using.dem
+file path=usr/demo/gnuplot/utf8.dem
+file path=usr/demo/gnuplot/vector.dem
+file path=usr/demo/gnuplot/whale.dat
+file path=usr/demo/gnuplot/world.cor
+file path=usr/demo/gnuplot/world.dat
+file path=usr/demo/gnuplot/world.dem
+file path=usr/demo/gnuplot/world2.dem
+file path=usr/lib/gnuplot/4.4/gnuplot_x11 mode=555
+file path=usr/share/emacs/site-lisp/gnuplot-gui.el
+file path=usr/share/emacs/site-lisp/gnuplot-gui.elc
+file path=usr/share/emacs/site-lisp/gnuplot.el
+file path=usr/share/emacs/site-lisp/gnuplot.elc
+file path=usr/share/emacs/site-lisp/info-look.20.2.el
+file path=usr/share/emacs/site-lisp/info-look.20.3.el
+file path=usr/share/gnuplot/4.4/PostScript/8859-1.ps
+file path=usr/share/gnuplot/4.4/PostScript/8859-15.ps
+file path=usr/share/gnuplot/4.4/PostScript/8859-2.ps
+file path=usr/share/gnuplot/4.4/PostScript/8859-9.ps
+file path=usr/share/gnuplot/4.4/PostScript/aglfn.txt
+file path=usr/share/gnuplot/4.4/PostScript/cp1250.ps
+file path=usr/share/gnuplot/4.4/PostScript/cp437.ps
+file path=usr/share/gnuplot/4.4/PostScript/cp850.ps
+file path=usr/share/gnuplot/4.4/PostScript/cp852.ps
+file path=usr/share/gnuplot/4.4/PostScript/koi8r.ps
+file path=usr/share/gnuplot/4.4/PostScript/koi8u.ps
+file path=usr/share/gnuplot/4.4/PostScript/prologue.ps
+file path=usr/share/gnuplot/4.4/PostScript/utf-8.ps
+file path=usr/share/gnuplot/4.4/app-defaults/Gnuplot
+file path=usr/share/gnuplot/4.4/gnuplot.gih
+file path=usr/share/gnuplot/4.4/js/README
+file path=usr/share/gnuplot/4.4/js/canvasmath.js
+file path=usr/share/gnuplot/4.4/js/canvastext.js
+file path=usr/share/gnuplot/4.4/js/gnuplot_common.js
+file path=usr/share/gnuplot/4.4/js/gnuplot_mouse.css
+file path=usr/share/gnuplot/4.4/js/gnuplot_mouse.js
+file path=usr/share/gnuplot/4.4/js/grid.png
+file path=usr/share/gnuplot/4.4/js/help.png
+file path=usr/share/gnuplot/4.4/js/nextzoom.png
+file path=usr/share/gnuplot/4.4/js/previouszoom.png
+file path=usr/share/gnuplot/4.4/js/textzoom.png
+file path=usr/share/gnuplot/4.4/lua/gnuplot-tikz.lua
+file path=usr/share/info/gnuplot.info
+file path=usr/share/man/man1/gnuplot.1 mangler.man.stability=uncommitted
+link path=usr/share/X11/app-defaults/Gnuplot target=../../gnuplot/4.4/app-defaults/Gnuplot
+
+# Add some dependencies that pkg is not finding
+
+depend fmri=__TBD pkg.debug.depend.file=usr/lib/libcanberra-gtk.so type=require
+depend fmri=__TBD pkg.debug.depend.file=usr/lib/gtk-2.0/modules/libgnomebreakpad.so type=require
+depend fmri=__TBD pkg.debug.depend.file=usr/lib/libXss.so type=require
+depend fmri=__TBD pkg.debug.depend.file=usr/lib/libXevie.so type=require
+depend fmri=__TBD pkg.debug.depend.file=usr/share/fonts/X11/Type1/cour.pfa type=require
+depend fmri=__TBD pkg.debug.depend.file=usr/share/fonts/TrueType/liberation/LiberationSans-Regular.ttf type=require
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gnuplot/patches/arial.patch	Tue Apr 26 14:07:49 2011 -0700
@@ -0,0 +1,14 @@
+--- gnuplot-4.4.0/term/gd.trm.orig	Wed Feb 24 18:29:20 2010
++++ gnuplot-4.4.0/term/gd.trm	Mon Mar 28 16:41:55 2011
+@@ -978,7 +978,11 @@
+ 	if (external_default)
+ 		png_state.ttffont = gp_strdup(external_default);
+ 	else	/* Might as well try some plausible font; it's no worse than failing immediately */
++#ifndef sun
+ 		png_state.ttffont = gp_strdup("arial");
++#else /* sun */
++		png_state.ttffont = gp_strdup("LiberationSans-Regular");
++#endif /* sun */
+ 
+ 	free(png_state.default_ttffont);
+ 	png_state.default_ttffont = gp_strdup(png_state.ttffont);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gnuplot/patches/libpng12.patch	Tue Apr 26 14:07:49 2011 -0700
@@ -0,0 +1,22 @@
+--- gnuplot-4.4.0/src/Makefile.am.orig	Fri Mar  5 18:09:39 2010
++++ gnuplot-4.4.0/src/Makefile.am	Tue Apr 19 15:59:18 2011
+@@ -51,7 +51,7 @@
+ template.h term_api.h term.c term.h time.c unset.c util.c util.h \
+ util3d.c util3d.h variable.c variable.h version.c version.h
+ 
+-gnuplot_LDADD = $(TERMLIBS) $(TERMXLIBS) $(WX_LIBS)
++gnuplot_LDADD = $(shell echo -lpng $(TERMLIBS) $(TERMXLIBS) $(WX_LIBS) | sed -e s,-lpng[0123456789]*,-lpng12,g)
+ 
+ pkglibexec_PROGRAMS = 
+ 
+--- gnuplot-4.4.0/src/Makefile.in.orig	Sat Mar 13 13:20:04 2010
++++ gnuplot-4.4.0/src/Makefile.in	Tue Apr 19 16:46:03 PDT 2011
+@@ -347,7 +347,7 @@
+ 	template.h term_api.h term.c term.h time.c unset.c util.c \
+ 	util.h util3d.c util3d.h variable.c variable.h version.c \
+ 	version.h $(am__append_2) $(am__append_3)
+-gnuplot_LDADD = $(TERMLIBS) $(TERMXLIBS) $(WX_LIBS)
++gnuplot_LDADD = $(shell echo -lpng $(TERMLIBS) $(TERMXLIBS) $(WX_LIBS) | sed -e s,-lpng[0123456789]*,-lpng12,g)
+ @BUILD_GNUPLOT_X11_TRUE@gnuplot_x11_SOURCES = gplt_x11.c gplt_x11.h gpexecute.c gpexecute.h mousecmn.h
+ @BUILD_GNUPLOT_X11_TRUE@XLIBS = @LIBRARIES_FOR_X@
+ @BUILD_GNUPLOT_X11_TRUE@gnuplot_x11_LDADD = getcolor_x11.o $(XLIBS)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gnuplot/patches/syscfg.h.patch	Tue Apr 26 14:07:49 2011 -0700
@@ -0,0 +1,11 @@
+--- gnuplot-4.4.0/src/syscfg.h.orig	Tue Feb  2 21:01:00 2010
++++ gnuplot-4.4.0/src/syscfg.h	Mon Mar 28 16:38:32 2011
+@@ -425,7 +425,7 @@
+ #endif
+ 
+ /* May or may not fix a problem reported for Sun Studio compilers */
+-#if defined(__SUNPRO_CC) && !defined(bool)
++#if defined(__SUNPRO_CC) && !defined __cplusplus && !defined(bool)
+ #define bool unsigned char
+ #endif
+ 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gnuplot/rundemo	Tue Apr 26 14:07:49 2011 -0700
@@ -0,0 +1,139 @@
+#!/bin/sh
+
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
+#
+
+# Unfortunately, the gnuplot demo wants run in the
+# /usr/demo/gnuplot directory.  While there it wants to read and
+# create files.  But ordinary users can't create files there.  So
+# we will create a temporary directory, put in symlinks to the
+# gnuplot data files, and run the gnuplot command from there.
+# This will allow us to run the gnuplot demo from any directory.
+#
+# If the environment variable $GNUPLOT_DEMO_SAVE_FILES is set to y,
+# then we will save any new files that get created back to the
+# current directory.  This can also be accomplished by
+# "rundemo -save-files".
+#
+# There are two font files that are not included.  Set
+# corresponding environment variables for sfrm1000.pfb and
+# cmmi10.pfb if running the demo fontfile_latex.dem.
+#
+# With no arguments we will run the default demo.
+# With arguments we will run gnuplot with those arguments.
+# One easy way to run the gnuplot demo is "rundemo < /dev/null"
+
+GNUPLOT_DEMO_DIR="${GNUPLOT_DEMO_DIR:-/usr/demo/gnuplot}"
+GNUPLOT_DEMO_PROGRAM="${GNUPLOT_DEMO_PROGRAM:-gnuplot}"
+GNUPLOT_DEMO_DEFAULT="${GNUPLOT_DEMO_DEFAULT:-all.dem}"
+GNUPLOT_DEMO_GSFONTS="${GNUPLOT_DEMO_GSFONTS:-/usr/share/ghostscript/fonts}"
+GNUPLOT_DEMO_P052003L_PFB="${GNUPLOT_DEMO_P052003L_PFB:-$GNUPLOT_DEMO_GSFONTS/p052003l.pfb}"
+GNUPLOT_DEMO_P052023L_PFB="${GNUPLOT_DEMO_P052023L_PFB:-$GNUPLOT_DEMO_GSFONTS/p052023l.pfb}"
+GNUPLOT_DEMO_TMPDIR="/tmp/gnuplot_demo_`logname`_$$"
+GNUPLOT_DEMO_LIST="$GNUPLOT_DEMO_DIR/*.bin \
+    $GNUPLOT_DEMO_DIR/*.cfg \
+    $GNUPLOT_DEMO_DIR/*.cor \
+    $GNUPLOT_DEMO_DIR/*.csv \
+    $GNUPLOT_DEMO_DIR/*.dat \
+    $GNUPLOT_DEMO_DIR/*.dem \
+    $GNUPLOT_DEMO_DIR/*.edf \
+    $GNUPLOT_DEMO_DIR/*.fnc \
+    $GNUPLOT_DEMO_DIR/*.inc \
+    $GNUPLOT_DEMO_DIR/*.par \
+    $GNUPLOT_DEMO_DIR/*.pdb \
+    $GNUPLOT_DEMO_DIR/*.r3d \
+    $GNUPLOT_DEMO_DIR/*.rgb \
+    $GNUPLOT_DEMO_DIR/*.rot \
+    $GNUPLOT_DEMO_DIR/binary[123] \
+    $GNUPLOT_DEMO_DIR/bldg.png \
+    $GNUPLOT_DEMO_DIR/gnu-valley \
+    $GNUPLOT_DEMO_DIR/random-points \
+    $GNUPLOT_DEMO_P052003L_PFB \
+    $GNUPLOT_DEMO_P052023L_PFB \
+    $GNUPLOT_DEMO_CMMI10_PFB \
+    $GNUPLOT_DEMO_SFRM1000_PFB"
+GNUPLOT_DEMO_SAVE_FILES=${GNUPLOT_DEMO_SAVE_FILES:-n}
+
+if [ "x$1" = "x-save-files" ]
+then
+	GNUPLOT_DEMO_SAVE_FILES="y"
+	shift
+
+elif [ "x$1" = "x-delete-files" ]
+then
+	GNUPLOT_DEMO_SAVE_FILES="n"
+	shift
+fi
+
+# if we are interrupted or terminated, remove the temporary
+# directory we will create.
+
+if [ "$GNUPLOT_DEMO_SAVE_FILES" = "y" ]
+then
+	trap "find $GNUPLOT_DEMO_TMPDIR -type f -a -exec cp -p {} . \; ; rm -rf $GNUPLOT_DEMO_TMPDIR; exit 1" INT TERM
+else
+	trap "rm -rf $GNUPLOT_DEMO_TMPDIR; exit 1" INT TERM
+fi
+
+# Create a writeable temporary directory to run the demo from.
+
+mkdir $GNUPLOT_DEMO_TMPDIR
+chmod u+rwx $GNUPLOT_DEMO_TMPDIR
+
+# Make symlinks in that directory to the demo sources
+
+for GNUPLOT_DEMO_FILE in $GNUPLOT_DEMO_LIST
+do
+	ln -s $GNUPLOT_DEMO_FILE $GNUPLOT_DEMO_TMPDIR
+done
+
+# Run the gnuplot demo in that directory.
+
+if [ "$#" -eq 0 ]
+then
+	(cd $GNUPLOT_DEMO_TMPDIR;
+	    exec $GNUPLOT_DEMO_PROGRAM $GNUPLOT_DEMO_DEFAULT)
+else
+	(cd $GNUPLOT_DEMO_TMPDIR;
+	    exec $GNUPLOT_DEMO_PROGRAM $*)
+fi
+
+# Save the gnuplot exit status
+
+GNUPLOT_DEMO_EXITSTATUS="$?"
+
+# If desired save any new files that got created in the temporary
+# directory
+
+if [ "$GNUPLOT_DEMO_SAVE_FILES" = "y" ]
+then
+	find $GNUPLOT_DEMO_TMPDIR -type f -exec cp -p {} . \;
+fi
+
+# Remove the temporary directory
+
+rm -rf $GNUPLOT_DEMO_TMPDIR
+
+# exit with the exit status from the gnuplot command
+
+exit $GNUPLOT_DEMO_EXITSTATUS
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gnuplot/runtcldemo	Tue Apr 26 14:07:49 2011 -0700
@@ -0,0 +1,131 @@
+#!/bin/sh
+
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
+#
+
+# Unfortunately, the gnuplot demo wants run in the
+# /usr/demo/gnuplot directory.  While there it wants to read and
+# create files.  But ordinary users can't create files there.  So
+# we will create a temporary directory, put in symlinks to the
+# gnuplot data files, and run the gnuplot command from there.
+# This will allow us to run the gnuplot demo from any directory.
+#
+# If the environment variable $GNUPLOT_DEMO_SAVE_FILES is set to y,
+# then we will save any new files that get created back to the
+# current directory.  This can also be accomplished by
+# "runtcldemo -save-files".
+#
+# There are two font files that are not included.  Set
+# corresponding environment variables for sfrm1000.pfb and
+# cmmi10.pfb if running the demo fontfile_latex.dem.
+#
+# One easy way to run the gnuplot demo is "runtcldemo"
+
+GNUPLOT_DEMO_DIR="${GNUPLOT_DEMO_DIR:-/usr/demo/gnuplot}"
+GNUPLOT_DEMO_PROGRAM="${GNUPLOT_DEMO_PROGRAM:-./gpdemos.tcl}"
+GNUPLOT_DEMO_GSFONTS="${GNUPLOT_DEMO_GSFONTS:-/usr/share/ghostscript/fonts}"
+GNUPLOT_DEMO_P052003L_PFB="${GNUPLOT_DEMO_P052003L_PFB:-$GNUPLOT_DEMO_GSFONTS/p052003l.pfb}"
+GNUPLOT_DEMO_P052023L_PFB="${GNUPLOT_DEMO_P052023L_PFB:-$GNUPLOT_DEMO_GSFONTS/p052023l.pfb}"
+GNUPLOT_DEMO_TMPDIR="/tmp/gnuplot_demo_`logname`_$$"
+GNUPLOT_DEMO_LIST="$GNUPLOT_DEMO_DIR/*.bin \
+    $GNUPLOT_DEMO_DIR/*.cfg \
+    $GNUPLOT_DEMO_DIR/*.cor \
+    $GNUPLOT_DEMO_DIR/*.csv \
+    $GNUPLOT_DEMO_DIR/*.dat \
+    $GNUPLOT_DEMO_DIR/*.dem \
+    $GNUPLOT_DEMO_DIR/*.edf \
+    $GNUPLOT_DEMO_DIR/*.fnc \
+    $GNUPLOT_DEMO_DIR/*.inc \
+    $GNUPLOT_DEMO_DIR/*.par \
+    $GNUPLOT_DEMO_DIR/*.pdb \
+    $GNUPLOT_DEMO_DIR/*.r3d \
+    $GNUPLOT_DEMO_DIR/*.rgb \
+    $GNUPLOT_DEMO_DIR/*.rot \
+    $GNUPLOT_DEMO_DIR/binary[123] \
+    $GNUPLOT_DEMO_DIR/bldg.png \
+    $GNUPLOT_DEMO_DIR/gnu-valley \
+    $GNUPLOT_DEMO_DIR/random-points \
+    $GNUPLOT_DEMO_DIR/gpdemos.tcl \
+    $GNUPLOT_DEMO_P052003L_PFB \
+    $GNUPLOT_DEMO_P052023L_PFB \
+    $GNUPLOT_DEMO_CMMI10_PFB \
+    $GNUPLOT_DEMO_SFRM1000_PFB"
+GNUPLOT_DEMO_SAVE_FILES=${GNUPLOT_DEMO_SAVE_FILES:-n}
+
+if [ "x$1" = "x-save-files" ]
+then
+	GNUPLOT_DEMO_SAVE_FILES="y"
+	shift
+
+elif [ "x$1" = "x-delete-files" ]
+then
+	GNUPLOT_DEMO_SAVE_FILES="n"
+	shift
+fi
+
+# if we are interrupted or terminated, remove the temporary
+# directory we will create.
+
+if [ "$GNUPLOT_DEMO_SAVE_FILES" = "y" ]
+then
+	trap "find $GNUPLOT_DEMO_TMPDIR -type f -a -exec cp -p {} . \; ; rm -rf $GNUPLOT_DEMO_TMPDIR; exit 1" INT TERM
+else
+	trap "rm -rf $GNUPLOT_DEMO_TMPDIR; exit 1" INT TERM
+fi
+
+# Create a writeable temporary directory to run the demo from.
+
+mkdir $GNUPLOT_DEMO_TMPDIR
+chmod u+rwx $GNUPLOT_DEMO_TMPDIR
+
+# Make symlinks in that directory to the demo sources
+
+for GNUPLOT_DEMO_FILE in $GNUPLOT_DEMO_LIST
+do
+	ln -s $GNUPLOT_DEMO_FILE $GNUPLOT_DEMO_TMPDIR
+done
+
+# Run the gnuplot demo in that directory.
+
+(cd $GNUPLOT_DEMO_TMPDIR;
+    exec $GNUPLOT_DEMO_PROGRAM $*)
+
+# Save the gnuplot exit status
+
+GNUPLOT_DEMO_EXITSTATUS="$?"
+
+# If desired save any new files that got created in the temporary
+# directory
+
+if [ "$GNUPLOT_DEMO_SAVE_FILES" = "y" ]
+then
+	find $GNUPLOT_DEMO_TMPDIR -type f -exec cp -p {} . \;
+fi
+
+# Remove the temporary directory
+
+rm -rf $GNUPLOT_DEMO_TMPDIR
+
+# exit with the exit status from the gnuplot command
+
+exit $GNUPLOT_DEMO_EXITSTATUS
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/meta-packages/history/SUNWgnuplot.p5m	Tue Apr 26 14:07:49 2011 -0700
@@ -0,0 +1,33 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+#
+
+#
+# Legacy package information for renamed SUNWgnuplot package
+#
+
+set name=pkg.fmri value=pkg:/[email protected],5.11-0.133
+set name=pkg.renamed value=true
+
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+
+depend fmri=image/[email protected] type=require