pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math Add xyconvert 1.5 to pkgsrc-current



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e685d6e7074a
branches:  trunk
changeset: 407591:e685d6e7074a
user:      nros <nros%pkgsrc.org@localhost>
date:      Tue Jan 07 13:35:44 2020 +0000

description:
Add xyconvert 1.5 to pkgsrc-current

xyconvert is a converter gui for powder diffraction files. It is distributed
with the xylib library.

diffstat:

 math/Makefile                              |   3 ++-
 math/xyconvert/DESCR                       |  22 ++++++++++++++++++++++
 math/xyconvert/Makefile                    |  25 +++++++++++++++++++++++++
 math/xyconvert/PLIST                       |   2 ++
 math/xylib/Makefile.common                 |   8 ++------
 math/xylib/distinfo                        |   4 +++-
 math/xylib/patches/patch-Makefile.in       |  24 ++++++++++++++++++++++++
 math/xylib/patches/patch-gui_xyconvert.cpp |  14 ++++++++++++++
 8 files changed, 94 insertions(+), 8 deletions(-)

diffs (161 lines):

diff -r b84a631aa5cf -r e685d6e7074a math/Makefile
--- a/math/Makefile     Tue Jan 07 13:35:13 2020 +0000
+++ b/math/Makefile     Tue Jan 07 13:35:44 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.450 2020/01/03 05:15:55 pho Exp $
+# $NetBSD: Makefile,v 1.451 2020/01/07 13:35:44 nros Exp $
 
 COMMENT=       Mathematics
 
@@ -413,6 +413,7 @@
 SUBDIR+=       xlife
 SUBDIR+=       xlispstat
 SUBDIR+=       xmgr
+SUBDIR+=       xyconvert
 SUBDIR+=       xylib
 SUBDIR+=       yacas
 SUBDIR+=       yices2
diff -r b84a631aa5cf -r e685d6e7074a math/xyconvert/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/xyconvert/DESCR      Tue Jan 07 13:35:44 2020 +0000
@@ -0,0 +1,22 @@
+xyconvert is a gui program for converting files that contain x-y data from
+powder diffraction, spectroscopy or other experimental methods.
+
+Supported formats:
+
+-  plain text (CSV or TSV or space-separated-values)
+-  Crystallographic Information File for Powder Diffraction (pdCIF)
+-  Siemens/Bruker UXD
+-  Siemens/Bruker RAW ver. 1/2/3/4
+-  Philips UDF
+-  Philips RD (raw scan) V3
+-  Rigaku DAT
+-  Sietronics Sieray CPI
+-  DBWS/DMPLOT data file
+-  Canberra MCA *(only one of Canberra MCA formats?)*
+-  XFIT/Koalariet XDD
+-  RIET7/LHPM/CSRIET/ILL\_D1A5/PSI\_DMC DAT
+-  Vamas ISO14976
+   *(only experiment modes: SEM or MAPSV or MAPSVDP are supported;
+   only REGULAR scan_mode is supported)*
+-  Princeton Instruments WinSpec SPE
+   *(only 1-D data is supported)*
diff -r b84a631aa5cf -r e685d6e7074a math/xyconvert/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/xyconvert/Makefile   Tue Jan 07 13:35:44 2020 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2020/01/07 13:35:44 nros Exp $
+#
+
+.include "../../math/xylib/Makefile.common"
+
+PKGNAME=       ${DISTNAME:S/lib/convert/g}
+COMMENT=       Converter for x-y (powder diffraction) data files
+BUILD_TARGET=  gui/xyconvert
+
+DISTINFO_FILE= ../../math/xylib/distinfo
+PATCHDIR=      ../../math/xylib/patches
+
+do-install:
+       ${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKSRC}/gui/xyconvert \
+               ${DESTDIR}${PREFIX}/bin
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../devel/boost-headers/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/adwaita-icon-theme/buildlink3.mk"
+.include "../../graphics/librsvg/buildlink3.mk"
+.include "../../math/xylib/buildlink3.mk"
+.include "../../x11/wxGTK30/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r b84a631aa5cf -r e685d6e7074a math/xyconvert/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/xyconvert/PLIST      Tue Jan 07 13:35:44 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/01/07 13:35:44 nros Exp $
+bin/xyconvert
diff -r b84a631aa5cf -r e685d6e7074a math/xylib/Makefile.common
--- a/math/xylib/Makefile.common        Tue Jan 07 13:35:13 2020 +0000
+++ b/math/xylib/Makefile.common        Tue Jan 07 13:35:44 2020 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile.common,v 1.1 2020/01/07 13:03:50 nros Exp $
-#
+# $NetBSD: Makefile.common,v 1.2 2020/01/07 13:35:44 nros Exp $
 # used by math/xylib/Makefile
-#
+# used by math/xyconvert/Makefile
 
 DISTNAME=      xylib-1.5
 CATEGORIES=    math
@@ -14,9 +13,6 @@
 
 LICENSE=       gnu-lgpl-v2
 
-#DISTINFO_FILE=        ../../math/xylib/distinfo
-#PATCHDIR=     ../../math/xylib/patches
-
 USE_LANGUAGES= c c++03
 USE_LIBTOOL=   yes
 GNU_CONFIGURE= yes
diff -r b84a631aa5cf -r e685d6e7074a math/xylib/distinfo
--- a/math/xylib/distinfo       Tue Jan 07 13:35:13 2020 +0000
+++ b/math/xylib/distinfo       Tue Jan 07 13:35:44 2020 +0000
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.8 2020/01/07 13:03:50 nros Exp $
+$NetBSD: distinfo,v 1.9 2020/01/07 13:35:44 nros Exp $
 
 SHA1 (xylib-1.5.tar.bz2) = 980b962cb07d93090c1cc6694ce9dc66952854aa
 RMD160 (xylib-1.5.tar.bz2) = 881945873e8d927b8e058ebce634631b24b7d62b
 SHA512 (xylib-1.5.tar.bz2) = 67da8653b422fa4b5ffdc9fe19d23f49e36e2692fb3aa98e130511cfe6db46b8e81b30d45cf302a1fe8b6d1a9b776d3c364ecdabb6489f1d7518e2736b6e2210
 Size (xylib-1.5.tar.bz2) = 365316 bytes
+SHA1 (patch-Makefile.in) = 607a06800f945aa5e406e4b0e4f32809e48ed2cf
+SHA1 (patch-gui_xyconvert.cpp) = 6739098920d2abbb63a8b0abd9dd89b0b4f4684e
 SHA1 (patch-xylib_util.cpp) = 822208cda9a88d1a0912908f1a5871800496e16f
diff -r b84a631aa5cf -r e685d6e7074a math/xylib/patches/patch-Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/xylib/patches/patch-Makefile.in      Tue Jan 07 13:35:44 2020 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-Makefile.in,v 1.1 2020/01/07 13:35:44 nros Exp $
+
+* make converters/xyconvert link with pkgsrc xylib
+
+--- Makefile.in.orig   2016-12-17 12:46:01.000000000 +0000
++++ Makefile.in
+@@ -121,7 +121,7 @@ am__dirstamp = $(am__leading_dot)dirstam
+ gui_xyconvert_OBJECTS = $(am_gui_xyconvert_OBJECTS)
+ am__DEPENDENCIES_1 =
+ @BUILD_GUI_TRUE@gui_xyconvert_DEPENDENCIES = $(xyconvert_res) \
+-@BUILD_GUI_TRUE@      $(am__DEPENDENCIES_1) xylib/libxy.la
++@BUILD_GUI_TRUE@      $(am__DEPENDENCIES_1)
+ AM_V_lt = $(am__v_lt_@AM_V@)
+ am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
+ am__v_lt_0 = --silent
+@@ -464,7 +464,7 @@ xyconv_LDADD = xylib/libxy.la -lm
+ @BUILD_GUI_TRUE@                      gui/uplot.cpp gui/uplot.h
+ 
+ @BUILD_GUI_TRUE@gui_xyconvert_CPPFLAGS = $(WX_CPPFLAGS) -DXYCONVERT
+-@BUILD_GUI_TRUE@gui_xyconvert_LDADD = $(xyconvert_res) $(WX_LIBS) xylib/libxy.la -lm
++@BUILD_GUI_TRUE@gui_xyconvert_LDADD = $(xyconvert_res) $(WX_LIBS) -lxy  -lm
+ all: config.h
+       $(MAKE) $(AM_MAKEFLAGS) all-recursive
+ 
diff -r b84a631aa5cf -r e685d6e7074a math/xylib/patches/patch-gui_xyconvert.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/xylib/patches/patch-gui_xyconvert.cpp        Tue Jan 07 13:35:44 2020 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-gui_xyconvert.cpp,v 1.1 2020/01/07 13:35:44 nros Exp $
+
+* show icon in about window
+
+--- gui/xyconvert.cpp.orig     2019-12-29 17:13:23.528063482 +0000
++++ gui/xyconvert.cpp
+@@ -277,6 +277,7 @@ void App::OnAbout(wxCommandEvent&)
+     adi.SetDescription(desc);
+     adi.SetWebSite("http://xylib.sf.net/";);
+     adi.SetCopyright("(C) 2008-2015 Marcin Wojdyr <wojdyr%gmail.com@localhost>");
++    adi.SetIcon(wxIcon(xyconvert48_xpm));
+     wxAboutBox(adi);
+ }
+ 



Home | Main Index | Thread Index | Old Index