Github messages for voidlinux
 help / color / mirror / Atom feed
From: Chocimier <Chocimier@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: plplot-5.15.0
Date: Fri, 17 Sep 2021 18:26:54 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-32995@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1517 bytes --]

There is a new pull request by Chocimier against master on the void-packages repository

https://github.com/Chocimier/void-packages-org plplot
https://github.com/void-linux/void-packages/pull/32995

New package: plplot-5.15.0
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/32995.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-plplot-32995.patch --]
[-- Type: text/x-diff, Size: 6815 bytes --]

From 1506a5e559d1f1881047812725570026762c5603 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <chocimier@tlen.pl>
Date: Fri, 17 Sep 2021 18:26:29 +0200
Subject: [PATCH] New package: plplot-5.15.0

---
 common/shlibs           |   3 +
 srcpkgs/libplplot       |   1 +
 srcpkgs/plplot-ada      |   1 +
 srcpkgs/plplot-devel    |   1 +
 srcpkgs/plplot-doc      |   1 +
 srcpkgs/plplot-fortran  |   1 +
 srcpkgs/plplot-lua      |   1 +
 srcpkgs/plplot-python3  |   1 +
 srcpkgs/plplot/template | 132 ++++++++++++++++++++++++++++++++++++++++
 9 files changed, 142 insertions(+)
 create mode 120000 srcpkgs/libplplot
 create mode 120000 srcpkgs/plplot-ada
 create mode 120000 srcpkgs/plplot-devel
 create mode 120000 srcpkgs/plplot-doc
 create mode 120000 srcpkgs/plplot-fortran
 create mode 120000 srcpkgs/plplot-lua
 create mode 120000 srcpkgs/plplot-python3
 create mode 100644 srcpkgs/plplot/template

diff --git a/common/shlibs b/common/shlibs
index 840fbc0b9a9f..d4f7d181c388 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -2522,6 +2522,9 @@ libmpd.so.1 libmpd-11.8.17_1
 libfa.so.1 augeas-1.4.0_1
 libaugeas.so.0 augeas-1.4.0_1
 libplot.so.2 plotutils-2.6_1
+libplplot.so.17 libplplot-5.15.0_1
+libplplottcltk.so.14 libplplot-5.15.0_1
+libplplottcltk_Main.so.1 libplplot-5.15.0_1
 libfloatfann.so.2 fann-2.2.0_1
 libfixedfann.so.2 fann-2.2.0_1
 libfann.so.2 fann-2.2.0_1
diff --git a/srcpkgs/libplplot b/srcpkgs/libplplot
new file mode 120000
index 000000000000..3f24a69a476d
--- /dev/null
+++ b/srcpkgs/libplplot
@@ -0,0 +1 @@
+plplot
\ No newline at end of file
diff --git a/srcpkgs/plplot-ada b/srcpkgs/plplot-ada
new file mode 120000
index 000000000000..3f24a69a476d
--- /dev/null
+++ b/srcpkgs/plplot-ada
@@ -0,0 +1 @@
+plplot
\ No newline at end of file
diff --git a/srcpkgs/plplot-devel b/srcpkgs/plplot-devel
new file mode 120000
index 000000000000..3f24a69a476d
--- /dev/null
+++ b/srcpkgs/plplot-devel
@@ -0,0 +1 @@
+plplot
\ No newline at end of file
diff --git a/srcpkgs/plplot-doc b/srcpkgs/plplot-doc
new file mode 120000
index 000000000000..3f24a69a476d
--- /dev/null
+++ b/srcpkgs/plplot-doc
@@ -0,0 +1 @@
+plplot
\ No newline at end of file
diff --git a/srcpkgs/plplot-fortran b/srcpkgs/plplot-fortran
new file mode 120000
index 000000000000..3f24a69a476d
--- /dev/null
+++ b/srcpkgs/plplot-fortran
@@ -0,0 +1 @@
+plplot
\ No newline at end of file
diff --git a/srcpkgs/plplot-lua b/srcpkgs/plplot-lua
new file mode 120000
index 000000000000..3f24a69a476d
--- /dev/null
+++ b/srcpkgs/plplot-lua
@@ -0,0 +1 @@
+plplot
\ No newline at end of file
diff --git a/srcpkgs/plplot-python3 b/srcpkgs/plplot-python3
new file mode 120000
index 000000000000..3f24a69a476d
--- /dev/null
+++ b/srcpkgs/plplot-python3
@@ -0,0 +1 @@
+plplot
\ No newline at end of file
diff --git a/srcpkgs/plplot/template b/srcpkgs/plplot/template
new file mode 100644
index 000000000000..890c49f3dfb2
--- /dev/null
+++ b/srcpkgs/plplot/template
@@ -0,0 +1,132 @@
+# Template file for 'plplot'
+pkgname=plplot
+version=5.15.0
+revision=1
+build_style=cmake
+build_helper="qemu"
+configure_args="-DPL_FREETYPE_FONT_PATH=/usr/share/fonts/TTF
+ -DCMAKE_NATIVE_BINARY_DIR=/usr -DPREBUILT_DOC=ON -DLUA_DIR=/usr/lib/lua/5.3"
+hostmakedepends="pkg-config gcc-fortran swig freefont-ttf lua53 plplot-devel"
+makedepends="pango-devel cairo-devel freetype-devel libqhull-devel
+ libltdl-devel Haru-devel tk-devel shapelib-devel
+ lua53-devel python3-devel python3-numpy"
+short_desc="Scientific graphics plotting with math symbols and human languages"
+maintainer="Piotr Wójcik <chocimier@tlen.pl>"
+license="LGPL-3.0-or-later"
+homepage="http://plplot.sourceforge.net"
+changelog="https://sourceforge.net/p/plplot/plplot/ci/master/tree/README.cumulated_release?format=raw"
+distfiles="${SOURCEFORGE_SITE}/plplot/plplot/${version}%20Source/plplot-${version}.tar.gz"
+checksum=b92de4d8f626a9b20c84fc94f4f6a9976edd76e33fb1eae44f6804bdcc628c7b
+subpackages="plplot-fortran plplot-lua plplot-python3 plplot-doc plplot-devel libplplot"
+python_version=3
+
+build_options="ada gen_tools"
+# Requires exporting BUILD_ADA=gcc et al. in setup_pkg
+desc_option_ada="Enable Ada bindings"
+desc_option_gen_tools="Build files for host required during cross build"
+
+if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
+	broken="PTHREAD_MUTEX_RECURSIVE_NP"
+fi
+
+if ! [ "$CROSS_BUILD" ]; then
+	build_options_default="gen_tools"
+fi
+
+if [ "$build_option_ada" ]; then
+	subpackages="plplot-ada $subpackages"
+else
+	configure_args+=" -DENABLE_ada=OFF"
+fi
+
+post_patch() {
+	vsed -i cmake/modules/instdirs.cmake -e '/General install/aFORCE'
+	# detection requires X server
+	vsed -i cmake/modules/tcl-related.cmake -e '/if(NOT PLPLOT_TK_VERSION)/ i set(PLPLOT_TK_VERSION ${PLPLOT_TCL_VERSION} CACHE STRING "Tk version found by wish")'
+}
+
+pre_build() {
+	if ! [ "$build_option_gen_tools" ]; then
+		ln -s /usr/lib/qsastime/deltaT-gen build/lib/qsastime
+		ln -s /usr/lib/qsastime/tai-utc-gen build/lib/qsastime
+		ln -s /usr/libexec/plhershey-unicode-gen build/include
+	fi
+}
+
+post_install() {
+	if [ "$build_option_gen_tools" ]; then
+		vinstall build/lib/qsastime/deltaT-gen.cmake 644 usr/lib/qsastime
+		vinstall build/lib/qsastime/deltaT-gen 755 usr/lib/qsastime
+		vinstall build/lib/qsastime/tai-utc-gen.cmake 644 usr/lib/qsastime
+		vinstall build/lib/qsastime/tai-utc-gen 755 usr/lib/qsastime
+		vinstall build/include/ImportExecutables.cmake 644 usr/include
+		vinstall build/include/plhershey-unicode-gen 755 usr/libexec
+	fi
+}
+
+plplot-ada_package() {
+	short_desc+=" - ada bindings"
+	pkg_install() {
+		vmove usr/lib/ada
+		vmove "usr/lib/libplplotada*"
+		vmove usr/share/ada
+	}
+}
+
+plplot-fortran_package() {
+	short_desc+=" - fortran bindings"
+	pkg_install() {
+		vmove usr/lib/fortran
+		vmove "usr/lib/libplplotfortran*"
+	}
+}
+
+plplot-lua_package() {
+	short_desc+=" - lua bindings"
+	pkg_install() {
+		vmove usr/lib/lua
+	}
+}
+
+plplot-python3_package() {
+	depends="python3-numpy"
+	short_desc+=" - python bindings"
+	pkg_install() {
+		vmove "$py3_lib"
+	}
+}
+
+libplplot_package() {
+	short_desc+=" - runtime library"
+	pkg_install() {
+		vmove "usr/lib/*.so.*"
+		vmove usr/lib/plplot${version}/drivers
+		vmove usr/share/plplot${version}
+	}
+}
+
+plplot-devel_package() {
+	depends="libplplot>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/cmake
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+		vmove "usr/lib/*.a"
+		if [ "$build_option_gen_tools" ]; then
+			vmove usr/lib/qsastime
+			vmove usr/libexec
+		fi
+	}
+}
+
+plplot-doc_package() {
+	short_desc+=" - documentation"
+	pkg_install() {
+		vmove usr/share/doc
+		vmove usr/share/info
+		vmove usr/share/man/man3
+		vmove usr/share/plplot${version}/examples
+	}
+}

             reply	other threads:[~2021-09-17 16:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-17 16:26 Chocimier [this message]
2021-09-17 17:00 ` [PR PATCH] [Updated] " Chocimier
2021-09-27 16:26 ` [PR PATCH] [Merged]: " Chocimier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-32995@inbox.vuxu.org \
    --to=chocimier@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).