pkgsrc-WIP-changes archive

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

qrupdate: add package



Module Name:	pkgsrc-wip
Committed By:	Dr. Thomas Orgis <thomas.orgis%uni-hamburg.de@localhost>
Pushed By:	thor
Date:		Fri Sep 29 21:48:14 2017 +0200
Changeset:	0e9e2ba3ad42a83824d101a416f9e857f73ed9c6

Added Files:
	qrupdate/DESCR
	qrupdate/Makefile
	qrupdate/PLIST
	qrupdate/buildlink3.mk
	qrupdate/distinfo
	qrupdate/patches/patch-src-makefile

Log Message:
qrupdate: add package

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0e9e2ba3ad42a83824d101a416f9e857f73ed9c6

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 qrupdate/DESCR                      | 45 +++++++++++++++++++++++++++++++++++++
 qrupdate/Makefile                   | 24 ++++++++++++++++++++
 qrupdate/PLIST                      |  2 ++
 qrupdate/buildlink3.mk              | 11 +++++++++
 qrupdate/distinfo                   |  7 ++++++
 qrupdate/patches/patch-src-makefile | 35 +++++++++++++++++++++++++++++
 6 files changed, 124 insertions(+)

diffs:
diff --git a/qrupdate/DESCR b/qrupdate/DESCR
new file mode 100644
index 0000000000..150b766c61
--- /dev/null
+++ b/qrupdate/DESCR
@@ -0,0 +1,45 @@
+The following operations are supported:
+
+QR rank-1 update (qr1up)
+        Updates the QR factorization after an additive rank-1 update to the
+        original matrix (A = A + u*v'). Works for full & economized 
+        factorization.
+QR column insert (qrinc)
+        Updates the QR factorization after an inserting a column to the
+        original matrix. Works for full & economized factorization.
+QR column delete (qrdec)
+        Updates the QR factorization after an deleting a column from the
+        original matrix. Works for full & economized factorization.
+QR column shift (qrshc)
+        Updates the QR factorization after a circular shift of columns in 
+        the original matrix. Works for full & economized factorization.
+QR row insert (qrinr)
+        Updates the QR factorization after an inserting a row to the
+        original matrix. Works for full factorization only.
+QR row delete (qrder)
+        Updates the QR factorization after an deleting a row from the
+        original matrix. Works for full factorization only.
+
+Cholesky rank-1 update (ch1up)
+        Updates the Cholesky factorization after positive rank-1 update
+        A = A + u*u'. 
+Cholesky rank-1 downdate (ch1dn)
+        Updates the Cholesky factorization after positive rank-1 downdate
+        A = A - u*u'. 
+Cholesky symmetric insert (chinx)
+        Updates the Cholesky factorization after a symmetric column/row
+        insertion.
+Cholesky symmetric insert (chdex)
+        Updates the Cholesky factorization after a symmetric column/row
+        deletion.
+Cholesky symmetric shift (chshx)
+        Updates the Cholesky factorization after a symmetric column/row
+        left/right circular shift.
+
+LU rank-1 update (lu1up)
+        Updates the LU factorization after a rank-1 update (A = A + u*v.'). 
+        No pivoting available. Faster than lup1up, but less stable.
+LU pivoted rank-1 update (lup1up)
+        Updates a row-pivoted LUP factorization after a rank-1 update
+        (A = A + u*v.'). Also updates the row permutation matrix. Slower
+        than lu1up, but more stable.
diff --git a/qrupdate/Makefile b/qrupdate/Makefile
new file mode 100644
index 0000000000..eaf738584f
--- /dev/null
+++ b/qrupdate/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD$
+
+DISTNAME=	qrupdate-1.1.2
+CATEGORIES=	math
+MASTER_SITES=	https://downloads.sourceforge.net/project/qrupdate/qrupdate/1.2/
+
+MAINTAINER=	thomas.orgis%uni-hamburg.de@localhost
+HOMEPAGE=	https://downloads.sourceforge.net/project/qrupdate/qrupdate/1.2/
+COMMENT=	library for fast updating of QR and Cholesky decompositions
+LICENSE=	gnu-gpl-v2
+
+USE_LIBTOOL=    yes
+USE_LANGUAGES=	fortran
+USE_TOOLS=      gmake
+
+MAKE_FLAGS= FC=${FC:Q} FFLAGS=${FFLAGS:Q} PREFIX=${PREFIX:Q} LIBDIR=lib
+
+do-build:
+	cd ${WRKDIR}/${DISTNAME}/src && gmake ${MAKE_FLAGS} lalib
+
+do-install:
+	cd ${WRKDIR}/${DISTNAME}/src && gmake DESTDIR=${DESTDIR}/ ${MAKE_FLAGS} lainstall
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/qrupdate/PLIST b/qrupdate/PLIST
new file mode 100644
index 0000000000..d8fdf77229
--- /dev/null
+++ b/qrupdate/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+lib/libqrupdate.la
diff --git a/qrupdate/buildlink3.mk b/qrupdate/buildlink3.mk
new file mode 100644
index 0000000000..79a7e2d54a
--- /dev/null
+++ b/qrupdate/buildlink3.mk
@@ -0,0 +1,11 @@
+# $NetBSD$
+BUILDLINK_TREE+=	qrupdate
+
+.if !defined(QRUPDATE_BUILDLINK3_MK)
+QRUPDATE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.qrupdate+=	qrupdate>=1.1.2
+BUILDLINK_PKGSRCDIR.qrupdate?=	../../wip/qrupdate
+.endif	# QRUPDATE_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-qrupdate
diff --git a/qrupdate/distinfo b/qrupdate/distinfo
new file mode 100644
index 0000000000..47828e36a6
--- /dev/null
+++ b/qrupdate/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (qrupdate-1.1.2.tar.gz) = f7403b646ace20f4a2b080b4933a1e9152fac526
+RMD160 (qrupdate-1.1.2.tar.gz) = 9d23b2d13278c335f6208ebb6775df4b4049785c
+SHA512 (qrupdate-1.1.2.tar.gz) = cc4e466ea91958e15c66be82b0c4c8ad813fbe4643f21259a9cb3ca8e0a411dd764bb2397ece848a7045f322d30316801d1540c4ebf7912030bef6995b44917c
+Size (qrupdate-1.1.2.tar.gz) = 49734 bytes
+SHA1 (patch-src-makefile) = 269fd891f99c1a5472a0315f1407c727d4c68216
diff --git a/qrupdate/patches/patch-src-makefile b/qrupdate/patches/patch-src-makefile
new file mode 100644
index 0000000000..489427d5f9
--- /dev/null
+++ b/qrupdate/patches/patch-src-makefile
@@ -0,0 +1,35 @@
+$NetBSD
+
+--- src/Makefile.orig	2017-04-14 22:09:56.691696785 +0200
++++ src/Makefile	2017-04-14 23:16:19.705455550 +0200
+@@ -34,6 +34,19 @@
+ 
+ OBJS = $(SRC:%.f=%.o)
+ 
++.SUFFIXES:      .f      .lo     .o
++LOBJS = $(SRC:%.f=%.lo)
++.f.lo:  
++	libtool --tag=FC --mode=compile $(FC) -o $@ -c $(FFLAGS) $<
++
++lalib: ../libqrupdate.la
++
++../libqrupdate.la: $(LOBJS)
++	libtool --tag=FC --mode=link $(FC) $(FFLAGS) -o $@  -version-info $(MAJOR) -rpath $(PREFIX)/$(LIBDIR) $(LOBJS)
++
++lainstall: lalib
++	libtool --tag=FC --mode=install install -D ../libqrupdate.la $(DESTDIR)$(PREFIX)/$(LIBDIR)/libqrupdate.la
++
+ lib: ../libqrupdate.a
+ 
+ ifeq ($(shell uname),Darwin)
+@@ -59,6 +72,10 @@
+ 
+ clean:
+ 	rm -f $(OBJS)
++	rm -f $(LOBJS)
++	rm -rf .libs
++	rm -f ../libqrupdate.la
++	rm -rf ../.libs
+ 
+ install: install-shlib install-staticlib
+ 


Home | Main Index | Thread Index | Old Index