diff --git a/debian-official/changelog b/debian-official/changelog index 4b1b6a91..8fa10749 100644 --- a/debian-official/changelog +++ b/debian-official/changelog @@ -1,505 +1,510 @@ -rkward (0.6.9-1) unstable; urgency=low +rkward (0.7.0-1) UNRELEASED; urgency=low * New upstream release + * The divergently licenced qwinhost-files are no longer part of this release, + simplifying copyright * Package now based on kf5-libraries, instead of KDE 4 + closes: #531086 + * Add dependency on r-api-3.4 to ease handling of future non-compatible changes in R + closes: #877283 * Use dh_auto_configure for basic setup -- Thomas Friedrichsmeier Mon, 26 Mar 2018 11:00:00 +0100 rkward (0.6.5-1) unstable; urgency=low * new upstream release (unchanged with respect to ~rc1) * fix debian/watch file * always use build-time version of r-base-core as runtime dependency, even if most builds would actually be backwards compatible * switch to dh-based rules file. This also fixes missing separation between arch-dependent and arch-independent build targets * Make build really reproducible (fix for earlier attempt upstream) closes: #783290 -- Thomas Friedrichsmeier Mon, 04 Apr 2016 11:00:00 +0100 rkward (0.6.5~rc1-1) unstable; urgency=low * new upstream release * split architecture independent files into new rkward-data package * bump standards version to 3.9.7 (no changes needed) * strip testing locale "x-test" from package * add override for false-positive source-contains-prebuilt-javascript-object lintian warnings * make existing lintian overrides work with lintian 2.5.42 * Adjust copyright file to changed filenames in rkward/qwinhost -- Thomas Friedrichsmeier Tue, 29 Mar 2016 11:00:00 +0100 rkward (0.6.4-1) unstable; urgency=low * new upstream release * add override for false-positive source-is-missing lintian warnings * remove obsolete README.Debian file * increase debhelper compatibility level to 9 (no changes needed) * replace dh_clean -k with dh_prep * remove legacy rules dealing with R versions prior to 3.0.0 * upstream has replaced KHTMLPart with QWebKit. As Qt4WebKit is scheduled for removal, revert this change, here. Change to 3.0 (quilt) format for this. * Make build reproducible (thanks to Philip Rinn) closes: #783290 -- Thomas Friedrichsmeier Wed, 16 Dec 2015 10:30:00 +0100 rkward (0.6.3-1) unstable; urgency=low * new upstream release * Ajdust to move of homepage to rkward.kde.org, and vcs to git.kde.org -- Thomas Friedrichsmeier Sat, 07 Mar 2015 13:30:00 +0100 rkward (0.6.2~rc1-2) unstable; urgency=low * bump standards version to 3.9.6 (no changes needed) -- Thomas Friedrichsmeier Fri, 17 Oct 2014 10:30:00 +0100 rkward (0.6.2~rc1-1) unstable; urgency=low * new upstream release * avoid duplicate cmake run during build * upstream increased lowest supported R version to 2.8.0 * bump standards version to 3.9.4 (no changes needed) -- Thomas Friedrichsmeier Thu, 16 Oct 2014 13:30:00 +0100 rkward (0.6.1-1) unstable; urgency=low * upstream release 0.6.1-rc1 was made available as 0.6.1 without changes * new upload to build against R 3.0.0 on most architectures * when built against r-base-core >= 3.0.0, depend on r-base-core <= 3.0.0 -- Thomas Friedrichsmeier Thu, 07 May 2013 12:30:00 +0100 rkward (0.6.1~rc1-1) unstable; urgency=low * new upstream release * re-add Vcs-Browser field * fix year in changelog (previous upload had 2012 instead of 2013) * add runtime dependency on r-base-core < 3.0.0 unless compiled with >= 3.0.0 -- Thomas Friedrichsmeier Thu, 28 Mar 2013 09:30:00 +0100 rkward (0.6.0-3) unstable; urgency=low * correctly treat -pre releases in debian/watch (thanks to Bart Martens) * remove obsolete DM-Upload-Allowed field * update Vcs-Svn field to changed repository URL * remove Vcs-Browser field, as there is no useful repository browser, ATM -- Thomas Friedrichsmeier Tue, 15 Jan 2012 12:30:00 +0100 rkward (0.6.0-2) unstable; urgency=low * make sure to include CPPFLAGS and LDFLAGS in call to cmake * correct path to qwinhost files in debian/copyright * correct syntax in debian/copyright (thanks to Laszlo Kajan) -- Thomas Friedrichsmeier Sat, 24 Nov 2012 14:15:00 +0200 rkward (0.6.0-1) unstable; urgency=low * new upstream release * remove support for building on Ubuntu hardy * more accurate copyright file closes: #689982 * bump standards version to 3.9.4 (no changes needed) * Add Vcs-Browser and Vcs-Svn fields -- Thomas Friedrichsmeier Wed, 24 Oct 2012 15:30:00 +0200 rkward (0.5.7-2) unstable; urgency=low * new upload to force rebuild against R 2.14.0~x on i386 closes: #646047 (failure to load rkward package) * add dependency on r-base-core < 2.14 if built against R < 2.14.0 -- Thomas Friedrichsmeier Tue, 25 Oct 2011 14:30:00 +0200 rkward (0.5.7-1) unstable; urgency=low * new upstream release * provide build-arch and build-indep targets * include buildflags as instructed by the dpkg developers -- Thomas Friedrichsmeier Sun, 23 Oct 2011 15:30:00 +0200 rkward (0.5.6-1) unstable; urgency=low * new upstream release * remove empty directory removal rkwardtests/inst. Now fixed upstream. * remove man page links to rkward.bin and rkward.rbackend. These auxiliary binaries are no longer installed in the system path. * remove debian man page. Man page is now supplied upstream. * drop explicit dependency on libphonon-dev. * fix lintian warning "description-synopsis-starts-with-article" * bump standards version to 3.9.2 (no changes needed) -- Thomas Friedrichsmeier Tue, 30 May 2011 15:30:00 +0200 rkward (0.5.5-2) unstable; urgency=low * Remove empty directory rkwardtests/inst fixes FTBFS with (the current alpha of) R 2.13.0 -- Thomas Friedrichsmeier Tue, 20 Mar 2011 14:30:00 +0200 rkward (0.5.5-1) unstable; urgency=low * new upstream release * add man-page link for new binary rkward.rbackend -- Thomas Friedrichsmeier Tue, 15 Mar 2011 14:30:00 +0200 rkward (0.5.4-1) unstable; urgency=low * new upstream release * bump standards version to 3.9.1 (no changes needed) * no more need to remove svncopy.sh-script in rules -- Thomas Friedrichsmeier Mon, 04 Oct 2010 14:30:00 +0200 rkward (0.5.3-2) unstable; urgency=low * correct usage of hyphens vs. minus signs in the man page * correct the watch file -- Thomas Friedrichsmeier Fri, 07 May 2010 14:30:00 +0200 rkward (0.5.3-1) unstable; urgency=low * new upstream release closes: #556321 (failed to link against thread-library, explicitly) * add watch file (thanks to Julien Lavergne and Scott Howard) closes: #569114 * remove svncopy.sh-script included in upstream release tarball by accident * remove obsolete runtime dependency on php5-cli * add dependency on ${misc:Depends} as recommended by debhelper * bump standards version to 3.8.4 (no changes needed) * add Homepage field -- Thomas Friedrichsmeier Fri, 30 Apr 2010 14:30:00 +0200 rkward (0.5.2-1) unstable; urgency=low * new upstream release closes: #551306 (added support for the new dynamic help system) * Add "DM-Upload-Allowed: yes" in control * bump standards version to 3.8.3 (no changes needed) -- Thomas Friedrichsmeier Mon, 26 Oct 2009 14:30:00 +0200 rkward (0.5.1-2) unstable; urgency=low * drop alternative depend on php4-cli as this is no longer part of any current debian based distribution * more accurate detection of patch-needing Ubuntu Hardy systems (thanks to Meik Michalke) -- Thomas Friedrichsmeier Tue, 18 Aug 2009 14:30:00 +0200 rkward (0.5.1-1) unstable; urgency=low * new upstream release * bump standards version to 3.8.2 (no changes needed) * dropped notice on development status from description * added notice on differing copyright and additional LGPL licence of some files * better version detection (thanks to Meik Michalke) * added conditional patch to support Ubuntu hardy (thanks to Meik Michalke) * decrease debhelper compat level to 6, in order to support Ubuntu hardy * revert to using dh_clean -k in order to comply with compat level 6 -- Thomas Friedrichsmeier Tue, 04 Aug 2009 14:30:00 +0200 rkward (0.5.0d-3) unstable; urgency=low * build-depend on libx11-dev closes: #529024 * use dh_prep instead of deprecated dh_clean -k -- Thomas Friedrichsmeier Mon, 19 May 2009 14:30:00 +0200 rkward (0.5.0d-2) unstable; urgency=low * bumped standards version to 3.8.1 * increased debhelper compat-level to 7 * upload to unstable (repeat closes because 0.5.0d-1 was not uploaded) closes: #520969 closes: #491110 closes: #501649 closes: #527649 (included missing Rdevices.h; actually fixed in 0.5.0c) -- Thomas Friedrichsmeier Sun, 11 May 2009 14:30:00 +0200 rkward (0.5.0d-1) unstable; urgency=low * new upstream release * upload to unstable (repeat closes because 0.5.0c-1 was not uploaded) closes: #520969 closes: #491110 closes: #501649 -- Thomas Friedrichsmeier Sun, 10 May 2009 21:30:00 +0200 rkward (0.5.0c-1) experimental; urgency=low * new upstream release closes: #520969 (added support for R 2.9.0) * query kde4-config to set the correct installation paths closes: #491110 (resource files were not found) closes: #501649 (plugin files were not found) -- Thomas Friedrichsmeier Wed, 30 Mar 2009 20:30:00 +0200 rkward (0.5.0b-1) unstable; urgency=low * new upstream release closes: #475175 closes: #463348 closes: #475982 closes: #455709 -- Thomas Friedrichsmeier Sun, 20 Apr 2008 21:30:00 +0200 rkward (0.5.0a-1) experimental; urgency=low * new upstream release * remove some obsolete comments in rules -- Thomas Friedrichsmeier Wed, 23 Jan 2008 16:30:00 +0200 rkward (0.5.0-1) experimental; urgency=low * new upstream release closes: #455709 * adjusted to build with KDE4 libraries / CMake -- Thomas Friedrichsmeier Mon, 21 Jan 2008 20:30:00 +0200 rkward (0.4.9a-1) unstable; urgency=low * new upstream release closes: #475175 closes: #463348 closes: #475982 -- Thomas Friedrichsmeier Sun, 20 Apr 2008 21:30:00 +0200 rkward (0.4.9-2) unstable; urgency=low * remove --ignore-missing-info parameter again (dpkg-shlibdeps 1.14.12 does not need it, anymore) * when uploaded to main archive, this closes: #460745 * bumped standards to 3.7.3 (no changes necessary) -- Thomas Friedrichsmeier Wed, 16 Jan 2008 17:30:00 +0200 rkward (0.4.9-1) unstable; urgency=low * new upstream release * add --ignore-missing-info paramater to dpkg-shlibdeps, as libR.so will not be found -- Thomas Friedrichsmeier Mon, 14 Jan 2008 20:30:00 +0200 rkward (0.4.8a-2) unstable; urgency=low * quote the R CMD config calls, as they may also contain compiler arguments (thanks to Meik Michalke for a patch) -- Thomas Friedrichsmeier Thu, 14 Nov 2007 13:30:00 +0200 rkward (0.4.8a-1) unstable; urgency=low * new upstream release * document --disable-stack-check and --debugger options in the manual page * use the compilers specified by R CMD config closes: #450618 -- Thomas Friedrichsmeier Sun, 11 Nov 2007 13:30:00 +0200 rkward (0.4.8-1) unstable; urgency=low * new upstream release closes: #417519 * adjust rkward.menu to new naming policy -- Thomas Friedrichsmeier Wed, 03 Oct 2007 13:30:00 +0200 rkward (0.4.7a-2) unstable; urgency=low * force gcc 4.2 to match r-base-core closes: #432377 * merge upstream fix for R 2.6 closes: #442059 * changed distclean rule in debian/rules to only ignore missing Makefiles -- Thomas Friedrichsmeier Fri, 14 Sep 2007 13:30:00 +0200 rkward (0.4.7a-1) unstable; urgency=low * new upstream release closes: #422541 * the code to generate the correct r-base-core dependencies should now be POSIX shell compliant * remove unused (and uncommented) dh_* scripts from rules -- Thomas Friedrichsmeier Mon, 07 May 2007 13:30:00 +0200 rkward (0.4.7-2) unstable; urgency=low * explicitely create installation directory for rkward R package -- Thomas Friedrichsmeier Wed, 11 Apr 2007 15:30:00 +0200 rkward (0.4.7-1) unstable; urgency=low * new upstream release closes: #415561 (filename completion) closes: #418686 (failure to work with R 2.5.0) -- Thomas Friedrichsmeier Wed, 11 Apr 2007 13:30:00 +0200 rkward (0.4.6-1) unstable; urgency=low * new upstream release * update r-base-core dependencies -- Thomas Friedrichsmeier Thu, 15 Feb 2007 19:30:00 +0200 rkward (0.4.5-1) unstable; urgency=low * new upstream release * provide entry in debian menu (Apps/Math) closes: #405376 -- Thomas Friedrichsmeier Sun, 21 Jan 2007 19:00:00 +0200 rkward (0.4.2-3) unstable; urgency=low * this version is not meant to be uploaded to the main archives! * fix compilation on sarge -- Thomas Friedrichsmeier Wed, 13 Dec 2006 17:30:00 +0200 rkward (0.4.2-2) unstable; urgency=low * migrate to unstable -- Thomas Friedrichsmeier Wed, 06 Dec 2006 20:00:00 +0200 rkward (0.4.2-1) experimental; urgency=low * new upstream release -- Thomas Friedrichsmeier Tue, 04 Dec 2006 16:45:00 +0200 rkward (0.4.1-1) unstable; urgency=low * new upstream release * depend on either php4-cli or php5-cli -- Thomas Friedrichsmeier Mon, 06 Nov 2006 16:30:00 +0200 rkward (0.4.0-2) unstable; urgency=low * fix automatic build on 64bit architectures closes: #394112 -- Thomas Friedrichsmeier Fri, 20 Oct 2006 14:00:00 +0200 rkward (0.4.0-1) unstable; urgency=low * new upstream release * remove obsoleted workaround for installation of rkward R package * cope with switch from CVS to SVN -- Thomas Friedrichsmeier Tue, 17 Oct 2006 14:40:00 +0200 rkward (0.3.7-1) unstable; urgency=low * new upstream release * use confiure option --with-r-libdir to make sure the rkward R package is installed in /usr/lib/R/site-library/ -- Thomas Friedrichsmeier Sun, 17 Sep 2006 16:40:00 +0200 rkward (0.3.6-4) unstable; urgency=low * fix automatic build on alpha machines patch provided by Martin Michlmayr closes: #374005 * bumbed to standards 3.7.2 -- Thomas Friedrichsmeier Sun, 18 Jun 2006 16:25:00 +0200 rkward (0.3.6-3) unstable; urgency=low * first version to be uploaded to debian closes: #333392 * Added Homepage to control file (changed by R.M.Rutschmann ) * fix detection of r-base-core dependency when compiled with r-base-core >= 2.3.0 * clean up rules somewhat -- Thomas Friedrichsmeier Tue, 25 Apr 2006 12:45:00 +0200 rkward (0.3.6-2) unstable; urgency=low * link manpage directly in installation instead of debian-dir * use --show-format instead of -f in call to dpkg-query (to work on stable) * delete any debian/CVS subdir included by accident during clean * add newline to copyright file -- Thomas Friedrichsmeier Mon, 24 Apr 2006 14:45:00 +0200 rkward (0.3.6-1) unstable; urgency=low * new upstream release * clean up manpage * debian dir is not longer included in upstream; create non-native package * create symlink rkward.bin.1 to rkward.1 and remove linitian expection (no man page) * use ${shlibs:Depends} for runtime dependencies * make sure to require correct version of r-base-core * specify --with-r-home in ./configure, in case there is more than one version of R installed -- Thomas Friedrichsmeier Sun, 23 Apr 2006 19:45:00 +0200 rkward (0.3.5) unstable; urgency=low * new upstream release * add lintian exception for rkward.bin (no man page) * remove call to build-help.pl during postinst postrm * use --disable-rpath in ./configure * remove /usr/sbin from dirs * use standards version 3.6.2 * add man page * remove redundant build-dependency on libqt3-mt-dev * break long lines in description -- Thomas Friedrichsmeier Sun, 16 Apr 2006 15:45:00 +0200 rkward (0.3.4) unstable; urgency=low * new upstream release * debian directory is now included in official release -- Thomas Friedrichsmeier Tue, 08 Nov 2005 16:00:33 +0200 rkward (0.3.3) unstable; urgency=low * new upstream release * Adjusted depends for R (2.1.0) * added run-time depend for libstdc++6 * correct path for KDE help files -- Thomas Friedrichsmeier Mon, 10 Oct 2005 11:20:33 +0200 rkward (0.3.2) unstable; urgency=low * new upstream release * Initial Release. * removing r.xml highlighting definition in order to avoid conflict with verison shipped with katepart -- Thomas Friedrichsmeier Tue, 26 Apr 2005 00:00:33 +0200 diff --git a/debian-official/control b/debian-official/control index 97f53574..33260ccd 100644 --- a/debian-official/control +++ b/debian-official/control @@ -1,42 +1,42 @@ Source: rkward Section: math Priority: optional Maintainer: Thomas Friedrichsmeier Build-Depends: cmake, extra-cmake-modules, pkg-kde-tools | pkg-kf5-tools, debhelper (>= 9.0.0), libkf5webkit-dev, libkf5texteditor-dev, kdoctools-dev, r-base-dev (>= 3.0.0) Standards-Version: 3.9.7 Homepage: http://rkward.kde.org Vcs-Browser: http://quickgit.kde.org/?p=rkward.git&a=tree&f=debian-official Vcs-Git: git://anongit.kde.org/rkward.git Package: rkward Architecture: any -Depends: rkward-data, ${misc:Depends}, ${rvers}, ${shlibs:Depends} +Depends: rkward-data, ${misc:Depends}, ${rvers}, ${rapivers}, ${shlibs:Depends} Recommends: r-base-html Description: KDE frontend to the R statistics language RKWard aims to become an easy to use, transparent frontend to R, a powerful system for statistical computation and graphics. Besides a convenient GUI for the most important statistical functions, future versions will also provide seamless integration with an office-suite. Package: rkward-data Architecture: all Depends: ${misc:Depends} Recommends: rkward Breaks: rkward (<< 0.6.5~rc1-1~) Replaces: rkward (<< 0.6.5~rc1-1~) Description: KDE frontend to the R statistics language RKWard aims to become an easy to use, transparent frontend to R, a powerful system for statistical computation and graphics. Besides a convenient GUI for the most important statistical functions, future versions will also provide seamless integration with an office-suite. . This package provides the architecture independent data files for rkward. diff --git a/debian-official/copyright b/debian-official/copyright index d063cf88..0e1b33b8 100644 --- a/debian-official/copyright +++ b/debian-official/copyright @@ -1,90 +1,38 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: RKWard Source: http://rkward.kde.org Files: * Copyright: 2002-2015 Thomas Friedrichsmeier and the RKWard team (Meik Michalke, Stefan Rödiger, Prasenjit Kapat, Pierre Ecochard, and others) License: GPL-2+ Files: rkward/rbackend/rpackages/rkwardtests/* rkward/plugins/rkwarddev_scripts/* rkward/plugins/rkwarddev_scripts/write_csv.R rkward/plugins/analysis/power/* Copyright: 2012, 2015 Thomas Friedrichsmeier, Meik Michalke and the RKWard team (Stefan Rödiger, Prasenjit Kapat, Pierre Ecochard, and others) License: GPL-2+ Files: rkward/syntax/* Copyright: 2006 Arne Henningsen 2006-2015 Pierre Ecochard, Thomas Friedrichsmeier and the RKWard team (Meik Michalke, Stefan Rödiger, Prasenjit Kapat, and others) License: GPL-2+ License: GPL-2+ 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. - -Files: rkward/qwinhost/qwinhost.cpp.unmodified rkward/qwinhost/qwinhost.cpp rkward/qwinhost/qwinhost.h.unmodified rkward/qwinhost/qwinhost.h -Copyright: (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -License: LPGL-2.1 and Nokia_Exception or GPL-3 - -License: LPGL-2.1 - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; - version 2.1 of the License. - . - This library 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 - Lesser General Public License for more details. - . - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - . - On Debian systems, the full text of the GNU Lesser General Public - License version 2.1 can be found in the file - `/usr/share/common-licenses/LGPL-2.1'. - -License: Nokia_Exception - Nokia Qt LGPL Exception version 1.0 - . - As a special exception to the GNU Lesser General Public License - version 2.1, the object code form of a "work that uses the Library" - may incorporate material from a header file that is part of the - Library. You may distribute such object code under terms of your - choice, provided that the incorporated material (i) does not exceed - more than 5% of the total size of the Library; and (ii) is limited to - numerical parameters, data structure layouts, accessors, macros, - inline functions and templates. - -License: GPL-3 - 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, version 3 of the License. - . - 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, see . - . - On Debian systems, the full text of the GNU General Public - License version 3 can be found in the file - `/usr/share/common-licenses/GPL-3'. diff --git a/debian-official/rules b/debian-official/rules index c5c3b871..0b9bf05a 100755 --- a/debian-official/rules +++ b/debian-official/rules @@ -1,56 +1,57 @@ #!/usr/bin/make -f #we need to know the R version RVERS = $(shell dpkg-query -W --showformat='$${Version}' r-base-core) RMAJOR = $(shell echo $(RVERS) | awk -F. '{print $$1}') RMINOR = $(shell echo $(RVERS) | awk -F. '{print $$2}') # set built-time of GNUR packages to time of created binary package based on stamp in changelog builttime = $(shell dpkg-parsechangelog -l$(CURDIR)/debian/changelog | awk -F': ' '/Date/ {print $$2}') # Workaround for cmake not handling CPPFLAGS (https://wiki.debian.org/HardeningWalkthrough): # As we cannot easily use dh for configuring, we have to merge flags, manually. CFLAGS += $(CPPFLAGS) CXXFLAGS += $(CPPFLAGS) # easier typing DESTDIR = $(CURDIR)/debian/tmp BUILDDIR = $(CURDIR)/debian/build %: dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR) override_dh_auto_configure: mkdir -p $(BUILDDIR) # Some installations of R need a specific version of the compiler(s) # R CMD config provides info on which compiler to use CC="`/usr/bin/R CMD config CC`" \ CXX="`/usr/bin/R CMD config CXX`" \ F77="`/usr/bin/R CMD config F77`" \ dh_auto_configure '--buildsystem=kf5' --parallel -- \ -DR_EXECUTABLE=/usr/bin/R/ \ -DR_LIBDIR=/usr/lib/R/site-library/ \ -DBUILD_TIMESTAMP="$(builttime)" override_dh_auto_install: dh_auto_install # dirty hack to get rid of conflicting r.xml file without adjusting all makefiles rm -vf $(DESTDIR)/usr/share/katepart/syntax/r.xml # remove unneeded R package files rm -vf $(DESTDIR)/usr/lib/R/site-library/R.css $(DESTDIR)/usr/lib/R/site-library/rkward/COPYING # remove x-test locale KF5 TODO FIXME rm -rvf $(DESTDIR)/usr/share/kde4/apps/rkward/po/x-test $(DESTDIR)/usr/share/locale/x-test override_dh_compress: # do not compress KDE HTML help dh_compress -Xusr/share/doc/kde/HTML override_dh_shlibdeps: dh_shlibdeps # unfortunately, the r-base-core dependency can not be found by dh_shlibdeps, so we need to get at the version manually # NOTE: This "if" is currently always true (see build-deps), but left here, for convenience, in case we get into trouble # with binary incompatibility (esp. foward incompatibility) again, in the future. @if [ "$(RMAJOR)" -eq "3" ] && [ "$(RMINOR)" -ge "0" ] ; then \ echo "rvers=r-base-core (>= $(RVERS))" >> $(CURDIR)/debian/rkward.substvars ; \ + echo "rapivers=r-api-3.4" >> $(CURDIR)/debian/rkward.substvars ; \ fi diff --git a/debian/changelog b/debian/changelog index 92ad5572..491c1acd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,499 +1,508 @@ rkward (0.6.9z+0.7.0+devel1-1) UNRELEASED; urgency=low * New upstream release + * The divergently licenced qwinhost-files are no longer part of this release, + simplifying copyright * Package now based on kf5-libraries, instead of KDE 4 + closes: #531086 * Use dh_auto_configure for basic setup -- Thomas Friedrichsmeier Mon, 26 Mar 2018 11:00:00 +0100 rkward (0.6.5-1) unstable; urgency=low * new upstream release (unchanged with respect to ~rc1) * fix debian/watch file * always use build-time version of r-base-core as runtime dependency, even if most builds would actually be backwards compatible * switch to dh-based rules file. This also fixes missing separation between arch-dependent and arch-independent build targets * Make build really reproducible (fix for earlier attempt upstream) closes: #783290 -- Thomas Friedrichsmeier Mon, 04 Apr 2016 11:00:00 +0100 rkward (0.6.5~rc1-1) unstable; urgency=low * new upstream release * split architecture independent files into new rkward-data package * bump standards version to 3.9.7 (no changes needed) * strip testing locale "x-test" from package * add override for false-positive source-contains-prebuilt-javascript-object lintian warnings * make existing lintian overrides work with lintian 2.5.42 * Adjust copyright file to changed filenames in rkward/qwinhost + -- Thomas Friedrichsmeier Tue, 29 Mar 2016 11:00:00 +0100 + rkward (0.6.4-1) unstable; urgency=low * new upstream release + * add override for false-positive source-is-missing lintian warnings * remove obsolete README.Debian file - * now uses QtWebKit module, adjust build-depends, accordingly (in a way that is - backwards compatible with Ubuntu Lucid) + * increase debhelper compatibility level to 9 (no changes needed) + * replace dh_clean -k with dh_prep + * remove legacy rules dealing with R versions prior to 3.0.0 + * upstream has replaced KHTMLPart with QWebKit. As Qt4WebKit is scheduled for + removal, revert this change, here. Change to 3.0 (quilt) format for this. * Make build reproducible (thanks to Philip Rinn) closes: #783290 -- Thomas Friedrichsmeier Wed, 16 Dec 2015 10:30:00 +0100 rkward (0.6.3-1) unstable; urgency=low * new upstream release * Ajdust to move of homepage to rkward.kde.org, and vcs to git.kde.org -- Thomas Friedrichsmeier Sat, 07 Mar 2015 13:30:00 +0100 rkward (0.6.2~rc1-2) unstable; urgency=low * bump standards version to 3.9.6 (no changes needed) -- Thomas Friedrichsmeier Fri, 17 Oct 2014 10:30:00 +0100 rkward (0.6.2~rc1-1) unstable; urgency=low * new upstream release * avoid duplicate cmake run during build * upstream increased lowest supported R version to 2.8.0 * bump standards version to 3.9.4 (no changes needed) -- Thomas Friedrichsmeier Thu, 16 Oct 2014 13:30:00 +0100 rkward (0.6.1-1) unstable; urgency=low * upstream release 0.6.1-rc1 was made available as 0.6.1 without changes * new upload to build against R 3.0.0 on most architectures * when built against r-base-core >= 3.0.0, depend on r-base-core <= 3.0.0 -- Thomas Friedrichsmeier Thu, 07 May 2013 12:30:00 +0100 rkward (0.6.1~rc1-1) unstable; urgency=low * new upstream release * re-add Vcs-Browser field * fix year in changelog (previous upload had 2012 instead of 2013) * add runtime dependency on r-base-core < 3.0.0 unless compiled with >= 3.0.0 -- Thomas Friedrichsmeier Thu, 28 Mar 2013 09:30:00 +0100 rkward (0.6.0-3) unstable; urgency=low * correctly treat -pre releases in debian/watch (thanks to Bart Martens) * remove obsolete DM-Upload-Allowed field * update Vcs-Svn field to changed repository URL * remove Vcs-Browser field, as there is no useful repository browser, ATM -- Thomas Friedrichsmeier Tue, 15 Jan 2012 12:30:00 +0100 rkward (0.6.0-2) unstable; urgency=low * make sure to include CPPFLAGS and LDFLAGS in call to cmake * correct path to qwinhost files in debian/copyright * correct syntax in debian/copyright (thanks to Laszlo Kajan) -- Thomas Friedrichsmeier Sat, 24 Nov 2012 14:15:00 +0200 rkward (0.6.0-1) unstable; urgency=low * new upstream release * remove support for building on Ubuntu hardy * more accurate copyright file closes: #689982 * bump standards version to 3.9.4 (no changes needed) * Add Vcs-Browser and Vcs-Svn fields -- Thomas Friedrichsmeier Wed, 24 Oct 2012 15:30:00 +0200 rkward (0.5.7-2) unstable; urgency=low * new upload to force rebuild against R 2.14.0~x on i386 closes: #646047 (failure to load rkward package) * add dependency on r-base-core < 2.14 if built against R < 2.14.0 -- Thomas Friedrichsmeier Tue, 25 Oct 2011 14:30:00 +0200 rkward (0.5.7-1) unstable; urgency=low * new upstream release * provide build-arch and build-indep targets * include buildflags as instructed by the dpkg developers -- Thomas Friedrichsmeier Sun, 23 Oct 2011 15:30:00 +0200 rkward (0.5.6-1) unstable; urgency=low * new upstream release * remove empty directory removal rkwardtests/inst. Now fixed upstream. * remove man page links to rkward.bin and rkward.rbackend. These auxiliary binaries are no longer installed in the system path. * remove debian man page. Man page is now supplied upstream. * drop explicit dependency on libphonon-dev. * fix lintian warning "description-synopsis-starts-with-article" * bump standards version to 3.9.2 (no changes needed) -- Thomas Friedrichsmeier Tue, 30 May 2011 15:30:00 +0200 rkward (0.5.5-2) unstable; urgency=low * Remove empty directory rkwardtests/inst fixes FTBFS with (the current alpha of) R 2.13.0 -- Thomas Friedrichsmeier Tue, 20 Mar 2011 14:30:00 +0200 rkward (0.5.5-1) unstable; urgency=low * new upstream release * add man-page link for new binary rkward.rbackend -- Thomas Friedrichsmeier Tue, 15 Mar 2011 14:30:00 +0200 rkward (0.5.4-1) unstable; urgency=low * new upstream release * bump standards version to 3.9.1 (no changes needed) * no more need to remove svncopy.sh-script in rules -- Thomas Friedrichsmeier Mon, 04 Oct 2010 14:30:00 +0200 rkward (0.5.3-2) unstable; urgency=low * correct usage of hyphens vs. minus signs in the man page * correct the watch file -- Thomas Friedrichsmeier Fri, 07 May 2010 14:30:00 +0200 rkward (0.5.3-1) unstable; urgency=low * new upstream release closes: #556321 (failed to link against thread-library, explicitly) * add watch file (thanks to Julien Lavergne and Scott Howard) closes: #569114 * remove svncopy.sh-script included in upstream release tarball by accident * remove obsolete runtime dependency on php5-cli * add dependency on ${misc:Depends} as recommended by debhelper * bump standards version to 3.8.4 (no changes needed) * add Homepage field -- Thomas Friedrichsmeier Fri, 30 Apr 2010 14:30:00 +0200 rkward (0.5.2-1) unstable; urgency=low * new upstream release closes: #551306 (added support for the new dynamic help system) * Add "DM-Upload-Allowed: yes" in control * bump standards version to 3.8.3 (no changes needed) -- Thomas Friedrichsmeier Mon, 26 Oct 2009 14:30:00 +0200 rkward (0.5.1-2) unstable; urgency=low * drop alternative depend on php4-cli as this is no longer part of any current debian based distribution * more accurate detection of patch-needing Ubuntu Hardy systems (thanks to Meik Michalke) -- Thomas Friedrichsmeier Tue, 18 Aug 2009 14:30:00 +0200 rkward (0.5.1-1) unstable; urgency=low * new upstream release * bump standards version to 3.8.2 (no changes needed) * dropped notice on development status from description * added notice on differing copyright and additional LGPL licence of some files * better version detection (thanks to Meik Michalke) * added conditional patch to support Ubuntu hardy (thanks to Meik Michalke) * decrease debhelper compat level to 6, in order to support Ubuntu hardy * revert to using dh_clean -k in order to comply with compat level 6 -- Thomas Friedrichsmeier Tue, 04 Aug 2009 14:30:00 +0200 rkward (0.5.0d-3) unstable; urgency=low * build-depend on libx11-dev closes: #529024 * use dh_prep instead of deprecated dh_clean -k -- Thomas Friedrichsmeier Mon, 19 May 2009 14:30:00 +0200 rkward (0.5.0d-2) unstable; urgency=low * bumped standards version to 3.8.1 * increased debhelper compat-level to 7 * upload to unstable (repeat closes because 0.5.0d-1 was not uploaded) closes: #520969 closes: #491110 closes: #501649 closes: #527649 (included missing Rdevices.h; actually fixed in 0.5.0c) -- Thomas Friedrichsmeier Sun, 11 May 2009 14:30:00 +0200 rkward (0.5.0d-1) unstable; urgency=low * new upstream release * upload to unstable (repeat closes because 0.5.0c-1 was not uploaded) closes: #520969 closes: #491110 closes: #501649 -- Thomas Friedrichsmeier Sun, 10 May 2009 21:30:00 +0200 rkward (0.5.0c-1) experimental; urgency=low * new upstream release closes: #520969 (added support for R 2.9.0) * query kde4-config to set the correct installation paths closes: #491110 (resource files were not found) closes: #501649 (plugin files were not found) -- Thomas Friedrichsmeier Wed, 30 Mar 2009 20:30:00 +0200 rkward (0.5.0b-1) unstable; urgency=low * new upstream release closes: #475175 closes: #463348 closes: #475982 closes: #455709 -- Thomas Friedrichsmeier Sun, 20 Apr 2008 21:30:00 +0200 rkward (0.5.0a-1) experimental; urgency=low * new upstream release * remove some obsolete comments in rules -- Thomas Friedrichsmeier Wed, 23 Jan 2008 16:30:00 +0200 rkward (0.5.0-1) experimental; urgency=low * new upstream release closes: #455709 * adjusted to build with KDE4 libraries / CMake -- Thomas Friedrichsmeier Mon, 21 Jan 2008 20:30:00 +0200 rkward (0.4.9a-1) unstable; urgency=low * new upstream release closes: #475175 closes: #463348 closes: #475982 -- Thomas Friedrichsmeier Sun, 20 Apr 2008 21:30:00 +0200 rkward (0.4.9-2) unstable; urgency=low * remove --ignore-missing-info parameter again (dpkg-shlibdeps 1.14.12 does not need it, anymore) * when uploaded to main archive, this closes: #460745 * bumped standards to 3.7.3 (no changes necessary) -- Thomas Friedrichsmeier Wed, 16 Jan 2008 17:30:00 +0200 rkward (0.4.9-1) unstable; urgency=low * new upstream release * add --ignore-missing-info paramater to dpkg-shlibdeps, as libR.so will not be found -- Thomas Friedrichsmeier Mon, 14 Jan 2008 20:30:00 +0200 rkward (0.4.8a-2) unstable; urgency=low * quote the R CMD config calls, as they may also contain compiler arguments (thanks to Meik Michalke for a patch) -- Thomas Friedrichsmeier Thu, 14 Nov 2007 13:30:00 +0200 rkward (0.4.8a-1) unstable; urgency=low * new upstream release * document --disable-stack-check and --debugger options in the manual page * use the compilers specified by R CMD config closes: #450618 -- Thomas Friedrichsmeier Sun, 11 Nov 2007 13:30:00 +0200 rkward (0.4.8-1) unstable; urgency=low * new upstream release closes: #417519 * adjust rkward.menu to new naming policy -- Thomas Friedrichsmeier Wed, 03 Oct 2007 13:30:00 +0200 rkward (0.4.7a-2) unstable; urgency=low * force gcc 4.2 to match r-base-core closes: #432377 * merge upstream fix for R 2.6 closes: #442059 * changed distclean rule in debian/rules to only ignore missing Makefiles -- Thomas Friedrichsmeier Fri, 14 Sep 2007 13:30:00 +0200 rkward (0.4.7a-1) unstable; urgency=low * new upstream release closes: #422541 * the code to generate the correct r-base-core dependencies should now be POSIX shell compliant * remove unused (and uncommented) dh_* scripts from rules -- Thomas Friedrichsmeier Mon, 07 May 2007 13:30:00 +0200 rkward (0.4.7-2) unstable; urgency=low * explicitely create installation directory for rkward R package -- Thomas Friedrichsmeier Wed, 11 Apr 2007 15:30:00 +0200 rkward (0.4.7-1) unstable; urgency=low * new upstream release closes: #415561 (filename completion) closes: #418686 (failure to work with R 2.5.0) -- Thomas Friedrichsmeier Wed, 11 Apr 2007 13:30:00 +0200 rkward (0.4.6-1) unstable; urgency=low * new upstream release * update r-base-core dependencies -- Thomas Friedrichsmeier Thu, 15 Feb 2007 19:30:00 +0200 rkward (0.4.5-1) unstable; urgency=low * new upstream release * provide entry in debian menu (Apps/Math) closes: #405376 -- Thomas Friedrichsmeier Sun, 21 Jan 2007 19:00:00 +0200 rkward (0.4.2-3) unstable; urgency=low * this version is not meant to be uploaded to the main archives! * fix compilation on sarge -- Thomas Friedrichsmeier Wed, 13 Dec 2006 17:30:00 +0200 rkward (0.4.2-2) unstable; urgency=low * migrate to unstable -- Thomas Friedrichsmeier Wed, 06 Dec 2006 20:00:00 +0200 rkward (0.4.2-1) experimental; urgency=low * new upstream release -- Thomas Friedrichsmeier Tue, 04 Dec 2006 16:45:00 +0200 rkward (0.4.1-1) unstable; urgency=low * new upstream release * depend on either php4-cli or php5-cli -- Thomas Friedrichsmeier Mon, 06 Nov 2006 16:30:00 +0200 rkward (0.4.0-2) unstable; urgency=low * fix automatic build on 64bit architectures closes: #394112 -- Thomas Friedrichsmeier Fri, 20 Oct 2006 14:00:00 +0200 rkward (0.4.0-1) unstable; urgency=low * new upstream release * remove obsoleted workaround for installation of rkward R package * cope with switch from CVS to SVN -- Thomas Friedrichsmeier Tue, 17 Oct 2006 14:40:00 +0200 rkward (0.3.7-1) unstable; urgency=low * new upstream release * use confiure option --with-r-libdir to make sure the rkward R package is installed in /usr/lib/R/site-library/ -- Thomas Friedrichsmeier Sun, 17 Sep 2006 16:40:00 +0200 rkward (0.3.6-4) unstable; urgency=low * fix automatic build on alpha machines patch provided by Martin Michlmayr closes: #374005 * bumbed to standards 3.7.2 -- Thomas Friedrichsmeier Sun, 18 Jun 2006 16:25:00 +0200 rkward (0.3.6-3) unstable; urgency=low * first version to be uploaded to debian closes: #333392 * Added Homepage to control file (changed by R.M.Rutschmann ) * fix detection of r-base-core dependency when compiled with r-base-core >= 2.3.0 * clean up rules somewhat -- Thomas Friedrichsmeier Tue, 25 Apr 2006 12:45:00 +0200 rkward (0.3.6-2) unstable; urgency=low * link manpage directly in installation instead of debian-dir * use --show-format instead of -f in call to dpkg-query (to work on stable) * delete any debian/CVS subdir included by accident during clean * add newline to copyright file -- Thomas Friedrichsmeier Mon, 24 Apr 2006 14:45:00 +0200 rkward (0.3.6-1) unstable; urgency=low * new upstream release * clean up manpage * debian dir is not longer included in upstream; create non-native package * create symlink rkward.bin.1 to rkward.1 and remove linitian expection (no man page) * use ${shlibs:Depends} for runtime dependencies * make sure to require correct version of r-base-core * specify --with-r-home in ./configure, in case there is more than one version of R installed -- Thomas Friedrichsmeier Sun, 23 Apr 2006 19:45:00 +0200 rkward (0.3.5) unstable; urgency=low * new upstream release * add lintian exception for rkward.bin (no man page) * remove call to build-help.pl during postinst postrm * use --disable-rpath in ./configure * remove /usr/sbin from dirs * use standards version 3.6.2 * add man page * remove redundant build-dependency on libqt3-mt-dev * break long lines in description -- Thomas Friedrichsmeier Sun, 16 Apr 2006 15:45:00 +0200 rkward (0.3.4) unstable; urgency=low * new upstream release * debian directory is now included in official release -- Thomas Friedrichsmeier Tue, 08 Nov 2005 16:00:33 +0200 rkward (0.3.3) unstable; urgency=low * new upstream release * Adjusted depends for R (2.1.0) * added run-time depend for libstdc++6 * correct path for KDE help files -- Thomas Friedrichsmeier Mon, 10 Oct 2005 11:20:33 +0200 rkward (0.3.2) unstable; urgency=low * new upstream release * Initial Release. * removing r.xml highlighting definition in order to avoid conflict with verison shipped with katepart -- Thomas Friedrichsmeier Tue, 26 Apr 2005 00:00:33 +0200 diff --git a/debian/copyright b/debian/copyright index d063cf88..0e1b33b8 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,90 +1,38 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: RKWard Source: http://rkward.kde.org Files: * Copyright: 2002-2015 Thomas Friedrichsmeier and the RKWard team (Meik Michalke, Stefan Rödiger, Prasenjit Kapat, Pierre Ecochard, and others) License: GPL-2+ Files: rkward/rbackend/rpackages/rkwardtests/* rkward/plugins/rkwarddev_scripts/* rkward/plugins/rkwarddev_scripts/write_csv.R rkward/plugins/analysis/power/* Copyright: 2012, 2015 Thomas Friedrichsmeier, Meik Michalke and the RKWard team (Stefan Rödiger, Prasenjit Kapat, Pierre Ecochard, and others) License: GPL-2+ Files: rkward/syntax/* Copyright: 2006 Arne Henningsen 2006-2015 Pierre Ecochard, Thomas Friedrichsmeier and the RKWard team (Meik Michalke, Stefan Rödiger, Prasenjit Kapat, and others) License: GPL-2+ License: GPL-2+ 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. - -Files: rkward/qwinhost/qwinhost.cpp.unmodified rkward/qwinhost/qwinhost.cpp rkward/qwinhost/qwinhost.h.unmodified rkward/qwinhost/qwinhost.h -Copyright: (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -License: LPGL-2.1 and Nokia_Exception or GPL-3 - -License: LPGL-2.1 - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; - version 2.1 of the License. - . - This library 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 - Lesser General Public License for more details. - . - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - . - On Debian systems, the full text of the GNU Lesser General Public - License version 2.1 can be found in the file - `/usr/share/common-licenses/LGPL-2.1'. - -License: Nokia_Exception - Nokia Qt LGPL Exception version 1.0 - . - As a special exception to the GNU Lesser General Public License - version 2.1, the object code form of a "work that uses the Library" - may incorporate material from a header file that is part of the - Library. You may distribute such object code under terms of your - choice, provided that the incorporated material (i) does not exceed - more than 5% of the total size of the Library; and (ii) is limited to - numerical parameters, data structure layouts, accessors, macros, - inline functions and templates. - -License: GPL-3 - 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, version 3 of the License. - . - 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, see . - . - On Debian systems, the full text of the GNU General Public - License version 3 can be found in the file - `/usr/share/common-licenses/GPL-3'. diff --git a/macports/kf5/kf5-rkward-binary/Portfile b/macports/kf5/kf5-rkward-binary/Portfile index 516d2222..8aa03020 100755 --- a/macports/kf5/kf5-rkward-binary/Portfile +++ b/macports/kf5/kf5-rkward-binary/Portfile @@ -1,128 +1,127 @@ # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ # Copyright (c) 2015, 2016 R.J.V. Bertin PortSystem 1.0 set kf5.project rkward-binary set kf5.virtualPath applications set kf5.category education PortGroup kf5 1.1 # kf5.use_latest applications-not-yet maintainers hhu.de:meik.michalke gmail.com:rjvbertin mk openmaintainer fetch.type git git.url https://anongit.kde.org/rkward.git worksrcdir ${kf5.project}-5 installs_libs no description KF5 extensible IDE/GUI for the R statistics language long_description RKWard is an easy to use and easily extensible IDE/GUI for R. \ It aims to combine the power of the R-language with the ease of use of commercial statistics tools. conflicts port:rkward rkward-devel rkward-binary rkward-devel-binary kf5-rkward homepage https://rkward.kde.org/ subport ${name}-devel { description ${description} This port follows git/frameworks long_description \ ${long_description} This port follows git/frameworks } ############ # configure R to use Mac binaries by default # you must first install the OS X packages of CRAN R, as we'll link against them if {${subport} eq "${name}-devel"} { conflicts-append \ ${name} fetch.type git # git.url git://anongit.kde.org/rkward # v0.6.5-201-g9585a62 - git.branch frameworks + git.branch master version 0.6.9z distname ${kf5.project}-5 } else { ############ # stable release, subport used for binary bundles conflicts-append \ ${name}-devel description ${description} This port doesn't have a release version yet. long_description \ ${long_description} This port doesn't have a release version yet. use_xz yes pre-fetch { ui_error "This port doesn't have a release version yet." return -code error "This port doesn't have a release version yet." } checksums rmd160 0 \ sha256 0 version 0.7.0 git.url http://anongit.kde.org/rkward.git git.branch releases/0.7.0 } configure.args-delete \ -DR_EXECUTABLE=${frameworks_dir}/R.framework/Resources/R configure.args-append \ -DNO_R_XML=1 \ -DRKVERSION_NUMBER=${version} \ -DUSE_BINARY_PACKAGES=1 \ -DR_EXECUTABLE=/Library/Frameworks/R.framework/Resources/R \ - -DR_LIBDIR=${frameworks_dir}/R.framework/Resources/library \ - -DR_EXECUTABLE=${frameworks_dir}/R.framework/Resources/R + -DR_LIBDIR=${frameworks_dir}/R.framework/Resources/library # -DBUNDLE_INSTALL_DIR=${applications_dir} \ # create libdir if it doesn't exist file mkdir ${frameworks_dir}/R.framework/Resources/library kf5.depends_qt5_components \ qtscript qtwebkit kf5.depends_frameworks \ kconfig kcoreaddons kcrash kdewebkit \ kdoctools ki18n knotifications kparts \ ktexteditor kwidgetsaddons kwindowsystem kxmlgui depends_lib-append \ port:gettext depends_lib-delete \ port:R depends_run-append ${kf5::osx-integration_dep} kf5.allow_apidocs_generation no patch.pre_args -Np1 post-extract { file mkdir ${worksrcpath}/build # need to fetch the plugin translations first if [file exists ${worksrcpath}/i18n/po] { system "cd ${worksrcpath}/i18n/po && git pull --rebase" } else { system "cd ${worksrcpath}/i18n && git clone http://anongit.kde.org/scratch/tfry/rkward-po-export po" } } configure.dir ${worksrcpath}/build configure.post_args .. build.dir ${worksrcpath}/build post-destroot { kf5.add_app_wrapper rkward5 rkward platform linux { file rename ${destroot}${kf5.libexec_dir}/rkward.rbackend ${destroot}${kf5.libexec_dir}/rkward.rbackend.bin xinstall -m 755 ${filespath}/rkward.rbackend.sh ${destroot}${kf5.libexec_dir}/rkward.rbackend reinplace "s|@QTLIBDIR@|${qt_libs_dir}|g" ${destroot}${kf5.libexec_dir}/rkward.rbackend } } pre-pkg { file copy -force -- ${worksrcpath}/macports/postinstall ${package.scripts}/postinstall file attributes ${package.scripts}/postinstall -permissions 0755 } diff --git a/macports/update_bundle.sh b/macports/update_bundle.sh index 3daa9879..d432bf1c 100755 --- a/macports/update_bundle.sh +++ b/macports/update_bundle.sh @@ -1,590 +1,702 @@ #!/bin/bash -SRCDATE=$(date +%Y-%m-%d) -SRCPATH=/opt/ports + +TXT_DGRAY="\033[1;30m" +TXT_LRED="\033[1;31m" +TXT_RED="\033[0;31m" +TXT_BLUE="\033[0;34m" +TXT_GREEN="\033[0;32m" +TXT_BOLD="\033[1m" +TXT_ITALIC="\033[3m" +TXT_UNDERSCORE="\033[4m" +OFF="\033[0m" + +# poor man's configuration +CONFIGDIR="${HOME}/.config/bash_scripts_${USER}" +CONFIGFILE="${CONFIGDIR}/update_bundle.conf" +if ! [ -f "${CONFIGFILE}" ] ; then + mkdir -p "${CONFIGDIR}" + cat < "${CONFIGFILE}" +SRCDATE=\$(date +%Y-%m-%d) +SRCPATH="/opt/ports" # specify git root path -GITROOT=/opt/git +GITROOT="/opt/git" # specify macports installation path -MPTINST=/opt/rkward +MPTINST="/opt/rkward" # specify the target port -PTARGET=kf5-rkward -BINSTRING="" -DEVSTRING="-devel" -DBGSTRING="" -PNSUFFX="${BINSTRING}${DBGSTRING}${DEVSTRING}" +PTARGET="kf5-rkward" +BINARY=true +DEVEL=true +DEBUG=false RKUSER="${USER}" USERBIN="${HOME}/bin" -OSXVERSION=$(sw_vers -productVersion | sed -e "s/.[[:digit:]]*$//") +OSXVERSION=\$(sw_vers -productVersion | sed -e "s/.[[:digit:]]*\$//") +PVARIANT="" +GITBRANCH="master" +# specify work directory +WORKDIR="\${SRCPATH}/kf5/\${PTARGET}/work" +# specify local public directory +LPUBDIR="${HOME}/Public/rkward" +# specify application dir used +APPLDIR="/Applications/RKWard" +# specify the prefix for build directories below \${MPTINST}/var/macports/build +BLDPRFX=_opt_rkward_var_macports_sources_rsync.macports.org_release_tarballs_ports_ +GITREPO="git://anongit.kde.org/rkward.git" +GITREPOKDE="git@git.kde.org:rkward.git" +RJVBREPO="https://github.com/mkae/macstrop.git" +EOF +fi -# initalize varaibles -DEVEL=true +. "${CONFIGFILE}" + +# mainly for the usage menu +BINMENU=0 +DEVMENU=0 +DBGMENU=0 +if $BINARY ; then + BINMENU=1 +fi +if $DEVEL ; then + DEVMENU=1 +fi +if $DEBUG ; then + DBGMENU=1 +fi + +# initalize variables ANONGIT=true BLDSETUP=false BUILDQT=false SSHGEN=false -DEBUG=false -BINARY=false FRESHMCP=false LSDSKUSG=false RMSTLIBS=false DOEXCPCK=false UPMPORTS=false UPRKWARD=false RPATHFIX=false MAKEMDMD=false MKSRCTAR=false COPYMDMD=false WIPEDSTF=false WIPEINST=false GETTARGVERS=true +PORTGROUPS=false -PVARIANT="" -## TODO: this will only keep work for a few days now... -GITBRANCH="frameworks" -#GITBRANCH="master" -# specify work directory -WORKDIR="${SRCPATH}/kf5/${PTARGET}/work" -# specify local public directory -LPUBDIR="${HOME}/Public/rkward" -# specify application dir used -APPLDIR=/Applications/RKWard -# specify the prefix for build directories below ${MPTINST}/var/macports/build -BLDPRFX=_opt_rkward_var_macports_sources_rsync.macports.org_release_tarballs_ports_ # this array holds all packages who should not be included in the bundle declare -a EXCLPKG=(audio_lame audio_libmodplug audio_libopus \ audio_libvorbis audio_speex audio_taglib databases_db46 databases_db48 databases_gdbm databases_openldap databases_sqlite3 devel_boost \ gnome_at-spi2-atk gnome_at-spi2-core gnome_desktop-file-utils gnome_gnome-common gnome_gobject-introspection gnome_gtk-doc \ gnome_gtk2 gnome_gtk3 gnome_hicolor-icon-theme gnome_libcroco gnome_libglade2 gnome_gobject-introspection \ lang_llvm-3.7 \ x11_mesa x11_pango x11_urw-fonts x11_Xft2 x11_xorg-bigreqsproto x11_xorg-compositeproto x11_xorg-damageproto \ x11_xorg-fixesproto x11_xorg-inputproto x11_xorg-kbproto x11_xorg-libice x11_xorg-libpthread-stubs x11_xorg-libsm \ x11_xorg-libX11 x11_xorg-libXau x11_xorg-libxcb x11_xorg-libXcomposite x11_xorg-libXcursor x11_xorg-libXdamage \ x11_xorg-libXdmcp x11_xorg-libXext x11_xorg-libXfixes x11_xorg-libXi x11_xorg-libXinerama \ x11_xorg-libXrandr x11_xorg-libXt x11_xorg-libXtst x11_xorg-randrproto x11_xorg-recordproto x11_xorg-renderproto \ x11_xorg-util-macros x11_xorg-xcb-proto x11_xorg-xcb-util x11_xorg-xcmiscproto x11_xorg-xextproto \ x11_xorg-xf86bigfontproto x11_xorg-xineramaproto x11_xorg-xproto x11_xorg-xtrans x11_xrender ) -# somehow, excluding these packages disables the help browser... -# multimedia_ffmpeg multimedia_libass multimedia_libbluray multimedia_libogg multimedia_libtheora multimedia_libvpx \ -# multimedia_schroedinger multimedia_x264 multimedia_XviD \ -# net_avahi net_kerberos5 net_tcp_wrappers \ -# security_cyrus-sasl2 security_p11-kit \ -# sysutils_e2fsprogs \ - #LLVMFIX="configure.compiler=llvm-gcc-4.2" # to see the dependency tree of ports, run # sudo port rdeps rkward-devel -#SVNREPO=http://svn.code.sf.net/p/rkward/code/trunk -GITREPO="git://anongit.kde.org/rkward.git" -GITREPOKDE="git@git.kde.org:rkward.git" -RJVBREPO="https://github.com/mkae/macstrop.git" OLDWD="$(pwd)" if [[ $1 == "" ]] ; then - echo "Usage: update_bundle.sh OPTIONS - OPTIONS: - - the following must always be combined with r/m/s/c: - -D build target ${PTARGET} instead of ${PTARGET}-devel - -d build variant 'debug' - -b build subport 'binary', needs CRAN R - - these work on their own: - - system setup: - -X completely!!! wipe ${MPTINST}, ${GITROOT} & ${SRCPATH} - there will only be a copy of this script left in ${USERBIN}/update_bundle.sh - -S - generate new ssh key pair to register with https://identity.kde.org - comment could be \"@\" - -G setup basic build environment: ${GITROOT} & ${SRCPATH} - if -G is set without both -U and -E, it will fallback to setup - ${GITROOT} anonymously -- build-only setup, no development - -Q build and install patched qt5-kde port from RJVB repo - -C checkout a branch different than ${GITBRANCH} - -U set git user name (KDE account) - -E set git user e-mail (KDE account) - -F - do an all fresh installation of - -f list disk usage for all includable ports - -x completely!!! wipe ${MPTINST}/var/macports/distfiles - - building & bundling: - -l remove static port libraries - -L don't bundle probably superfluous ports - -p update macports, remove inactive - -r update port ${PTARGET} - -m create .mpkg of ${PTARGET} - -s create sources .tar - -c move .mpkg and src.tar to ${LPUBDIR}, if created - -t set target version for -c manually + echo -e "Usage: + ${TXT_BOLD}update_bundle.sh${OFF} ${TXT_DGRAY}${TXT_ITALIC}[OPTIONS]${OFF} + + typically, you might want to run the following steps in this order: + ${TXT_DGRAY}0.${OFF} remove a previous installation (${TXT_BOLD}-X${OFF}) + ${TXT_DGRAY}1.${OFF} setup basic build environment (${TXT_BOLD}-G${OFF}) + ${TXT_DGRAY}2.${OFF} install MacPorts (${TXT_BOLD}-F${OFF} ${TXT_ITALIC}${OFF}) + ${TXT_DGRAY}3.${OFF} build Qt (${TXT_BOLD}-Q${OFF}) + ${TXT_DGRAY}4.${OFF} build RKWard using CRAN R (${TXT_BOLD}-r${OFF}) + ${TXT_DGRAY}5.${OFF} remove static libs & create binary bundle (${TXT_BOLD}-lm${OFF}) + + ${TXT_UNDERSCORE}OPTIONS${OFF}: + + ${TXT_DGRAY}cleaning up:${OFF} + ${TXT_BOLD}-X${OFF} ${TXT_LRED}completely!!! wipe${OFF} ${TXT_BLUE}${MPTINST}${OFF}, ${TXT_BLUE}${GITROOT}${OFF} & ${TXT_BLUE}${SRCPATH}${OFF} + this will leave only a copy of this script (${TXT_BLUE}${USERBIN}/update_bundle.sh${OFF}) + and its config file (${TXT_BLUE}${CONFIGFILE}${OFF}) + ${TXT_BOLD}-x${OFF} ${TXT_LRED}completely!!! wipe${OFF} ${TXT_BLUE}${MPTINST}/var/macports/distfiles${OFF} + + ${TXT_DGRAY}system setup:${OFF} + ${TXT_BOLD}-G${OFF} setup basic build environment: ${TXT_BLUE}${GITROOT}${OFF} & ${TXT_BLUE}${SRCPATH}${OFF} + if ${TXT_BOLD}-G${OFF} is set without both ${TXT_BOLD}-U${OFF} and ${TXT_BOLD}-E${OFF}, it will fallback to setup + ${TXT_BLUE}${GITROOT}${OFF} anonymously -- build-only setup, no development + ${TXT_BOLD}-F${OFF} ${TXT_LRED}${TXT_ITALIC}${OFF} + do an all fresh installation of ${TXT_LRED}${TXT_ITALIC}${OFF} + ${TXT_BOLD}-Q${OFF} build and install ports ${TXT_BLUE}qt5-kde${OFF} and ${TXT_BLUE}kf5-osx-integration${OFF} from RJVB repo + + ${TXT_BOLD}-q${OFF} manually update/fix PortGroups from RJVB repo + ${TXT_BOLD}-f${OFF} list disk usage for all includable ports + ${TXT_BOLD}-S${OFF} ${TXT_LRED}${TXT_ITALIC}${OFF} + generate new ssh key pair to register with ${TXT_BLUE}https://identity.kde.org${OFF} + comment could be ${TXT_BLUE}${TXT_ITALIC}\"@\"${OFF} + + ${TXT_DGRAY}optional git configuration (${OFF}${TXT_BOLD}-G${OFF}${TXT_DGRAY}):${OFF} + ${TXT_BOLD}-U${OFF} set git user name (KDE account) + ${TXT_BOLD}-E${OFF} set git user e-mail (KDE account) + ${TXT_BOLD}-C${OFF} checkout a certain git branch of the RKWard repo + default: ${TXT_BLUE}${GITBRANCH}${OFF} + + ${TXT_DGRAY}building & bundling (can be combined with${OFF} ${TXT_BOLD}-D${OFF}${TXT_DGRAY}/${OFF}${TXT_BOLD}-d${OFF}${TXT_DGRAY}/${OFF}${TXT_BOLD}-b${OFF}${TXT_DGRAY}):${OFF} + ${TXT_BOLD}-l${OFF} remove static port libraries + ${TXT_BOLD}-p${OFF} update macports, remove inactive + ${TXT_BOLD}-r${OFF} update port ${TXT_BLUE}${PTARGET}${OFF} + ${TXT_BOLD}-m${OFF} create .mpkg of ${TXT_BLUE}${PTARGET}${OFF} + ${TXT_BOLD}-s${OFF} create sources .tar + ${TXT_BOLD}-c${OFF} rename and move .mpkg and src.tar to ${TXT_BLUE}${LPUBDIR}${OFF}, if existing + ${TXT_BOLD}-t${OFF} set target version for ${TXT_BOLD}-c${OFF} manually + + ${TXT_DGRAY}the following must always be combined with${OFF} ${TXT_BOLD}-r${OFF}${TXT_DGRAY}/${OFF}${TXT_BOLD}-m${OFF}${TXT_DGRAY}/${OFF}${TXT_BOLD}-s${OFF}${TXT_DGRAY}/${OFF}${TXT_BOLD}-c${OFF}${TXT_DGRAY}:${OFF} + ${TXT_BOLD}-D${OFF} ${TXT_LRED}${TXT_ITALIC}<0|1>${OFF} 1 will build target ${TXT_BLUE}${PTARGET}-devel${OFF} instead of ${TXT_BLUE}${PTARGET}${OFF} + default: ${TXT_BLUE}${DEVMENU}${OFF} + ${TXT_BOLD}-d${OFF} ${TXT_LRED}${TXT_ITALIC}<0|1>${OFF} 1 will build variant ${TXT_BLUE}debug${OFF} + default: ${TXT_BLUE}${DBGMENU}${OFF} + ${TXT_BOLD}-b${OFF} ${TXT_LRED}${TXT_ITALIC}<0|1>${OFF} 1 build subport ${TXT_BLUE}binary${OFF}, needs CRAN R + default: ${TXT_BLUE}${BINMENU}${OFF} + + ${TXT_DGRAY}you can change/set the defaults by editing the config file for this script:${OFF} + ${TXT_BLUE}${CONFIGFILE}${OFF} " +# off for the moment: +# ${TXT_BOLD}-L${OFF} don't bundle probably superfluous ports exit 0 fi # get the options -while getopts ":CDE:dbfGlLprQmsS:cU:xXF:t:" OPT; do +while getopts ":CD:E:d:b:fGlLprQqmsS:cU:xXF:t:" OPT; do case $OPT in U) GITUSER=$OPTARG >&2 ;; E) GITMAIL=$OPTARG >&2 ;; G) BLDSETUP=true >&2 if [[ $GITUSER == "" || $GITMAIL == "" ]] ; then ANONGIT=true >&2 else ANONGIT=false >&2 fi ;; Q) BUILDQT=true >&2 ;; + q) PORTGROUPS=true >&2 ;; C) GITBRANCH=$OPTARG >&2 ;; S) SSHGEN=true >&2 SSHCOMMENT=$OPTARG >&2 ;; - D) DEVSTRING="" >&2 - WORKDIR="${SRCPATH}/kf5/kf5-rkward/work" >&2 - DEVEL=false >&2 ;; - d) DEBUG=true >&2 - PVARIANT="+debug" >&2 - DBGSTRING="-debug" >&2 ;; - b) BINARY=true >&2 - BINSTRING="-binary" >&2 - WORKDIR="${SRCPATH}/kf5/kf5-rkward-binary/work" >&2 ;; + D) if [ $OPTARG -eq 1 ] ; then + DEVEL=true >&2 + else + DEVEL=false >&2 + fi ;; + d) if [ $OPTARG -eq 1 ] ; then + DEBUG=true >&2 + else + DEBUG=false >&2 + fi ;; + b) if [ $OPTARG -eq 1 ] ; then + BINARY=true >&2 + else + BINARY=false >&2 + fi ;; F) FRESHMCP=true >&2 MCPVERS=$OPTARG >&2 ;; f) LSDSKUSG=true >&2 ;; l) RMSTLIBS=true >&2 ;; L) DOEXCPCK=true >&2 ;; p) UPMPORTS=true >&2 ;; r) UPRKWARD=true >&2 ;; m) RPATHFIX=true >&2 MAKEMDMD=true >&2 ;; s) MKSRCTAR=true >&2 ;; c) COPYMDMD=true >&2 ;; t) GETTARGVERS=false >&2 TARGETVERS=$OPTARG >&2 ;; x) WIPEDSTF=true >&2 ;; X) WIPEDSTF=false >&2 WIPEINST=true >&2 ;; \?) echo "Invalid option: -$OPTARG" >&2 exit 1 ;; :) echo "Option -$OPTARG requires an argument." >&2 exit 1 ;; esac done +if $BINARY ; then + WORKDIR="${SRCPATH}/kf5/kf5-rkward-binary/work" + BINSTRING="-binary" +else + BINARY=false + BINSTRING="" +fi +if $DEVEL ; then + DEVSTRING="-devel" +else + WORKDIR="${SRCPATH}/kf5/kf5-rkward/work" + DEVSTRING="" +fi +if $DEBUG ; then + PVARIANT="+debug" + DBGSTRING="-debug" +else + DBGSTRING="" +fi + PNSUFFX="${BINSTRING}${DBGSTRING}${DEVSTRING}" PTARGET="kf5-rkward${PNSUFFX}" +error() { + # $1: message to print + echo -e "${TXT_RED}error:${OFF} $1" + exit 1 +} + +alldone() { + echo -e " ${TXT_GREEN}done! ${OFF}" +} + linkbuildscript () { # create a hardlink of the buildscript # $1: target directory (e.g., $HOME/bin) - echo "updating hardlink $1/update_bundle.sh..." + echo -en "updating hardlink ${TXT_BLUE}$1/update_bundle.sh${OFF}..." mkdir -p "$1" || exit 1 ln -f "${GITROOT}/rkward/macports/update_bundle.sh" "$1/update_bundle.sh" || exit 1 + alldone } rmdirv () { # remove directories recursively with info # $1: target directory to remove if [ -d "$1" ] ; then - echo "removing $1..." + echo -en "removing ${TXT_BLUE}$1${OFF}..." sudo rm -rf "$1" || exit 1 + alldone fi } +mkmissingdir() { + # $1: path to check + if [ ! -d "${1}" ] ; then + echo -en "create missing directory ${TXT_BLUE}$1${OFF}..." + mkdir -p "${1}" || exit 1 + alldone + fi +} + +updatePortGrous() { + echo "syncing PortGroup files..." + sudo rsync -av "${GITROOT}/macstrop/_resources/port1.0/" "${MPTINST}/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/" || exit 1 + alldone +} + # correct setting of RPATHFIX workaround, it's not needed # for binary subports since they don't include R.framework if $BINARY ; then RPATHFIX=false fi # remove MacPorts completely if $WIPEINST ; then rmdirv "${MPTINST}" rmdirv "${APPLDIR}" rmdirv "/Applications/MacPorts" # these leftovers would conflict with port installation for libsymlink in \ /Library/LaunchAgents/org.freedesktop.dbus-session.plist \ /Library/LaunchAgents/org.macports.kdecache.plist \ /Library/LaunchAgents/org.macports.kdecache5.plist \ /Library/LaunchAgents/org.macports.kwalletd5.plist \ /Library/LaunchDaemons/org.freedesktop.dbus-system.plist \ /Library/LaunchDaemons/org.freedesktop.avahi-daemon.plist \ /Library/LaunchDaemons/org.freedesktop.avahi-dnsconfd.plist \ /Library/LaunchDaemons/org.macports.mysql5.plist \ /Library/LaunchDaemons/org.macports.rsyncd.plist \ /Library/LaunchDaemons/org.macports.slapd.plist do if [ -L "${libsymlink}" ] ; then - echo "removing symbolic link ${libsymlink}..." + echo -en "removing symbolic link ${TXT_BLUE}${libsymlink}${OFF}..." sudo rm "${libsymlink}" + alldone fi done if [ -f "${SRCPATH}" ] ; then - echo "removing symlink ${SRCPATH}..." + echo -en "removing symlink ${TXT_BLUE}${SRCPATH}${OFF}..." sudo rm "${SRCPATH}" || exit 1 + alldone fi # ensure ${USERBIN}/update_bundle.sh linkbuildscript "${USERBIN}" rmdirv "${GITROOT}" - echo "successfully wiped RKWard from this machine!" + echo -e "${TXT_GREEN}successfully wiped RKWard from this machine!${OFF}" exit 0 fi # prepare for a clean installation, remove all cached sources if $WIPEDSTF ; then - echo "rm -rf ${MPTINST}/var/macports/distfiles/*" + echo -en "rm -rf ${TXT_BLUE}${MPTINST}/var/macports/distfiles/*${OFF}..." sudo rm -rf "${MPTINST}/var/macports/distfiles/*" + alldone fi if $SSHGEN ; then mkdir -p "${HOME}/.ssh" || exit 1 chmod 700 "${HOME}/.ssh" || exit 1 ssh-keygen -t rsa -b 4096 -C "${SSHCOMMENT}" || exit 1 - echo "next step: upload ~/.ssh/id_rsa.pub to https://identity.kde.org" + echo -e "next step: upload ${TXT_BLUE}~/.ssh/id_rsa.pub${OFF} to ${TXT_BLUE}https://identity.kde.org${OFF}" exit 0 fi # prepare build environment if $BLDSETUP ; then # check for Xcode.app if ! [ -d "/Applications/Xcode.app" ] ; then - echo "you must install Xcode first!" - exit 1 + error "you must install Xcode first!" + fi + if ! [ -d "${GITROOT}" ] ; then + echo -en "create missing directory ${TXT_BLUE}${GITROOT}${OFF}..." + sudo mkdir -p "${GITROOT}" || exit 1 + sudo chown "${USER}" "${GITROOT}" || exit 1 + alldone fi - sudo mkdir -p "${GITROOT}" || exit 1 - sudo chown "${USER}" "${GITROOT}" || exit 1 cd "${GITROOT}" || exit 1 if $ANONGIT ; then git clone "${GITREPO}" || exit 1 cd rkward || exit 1 else # should this fail, try https:// instead of git@ git clone "${GITREPOKDE}" || exit 1 cd rkward || exit 1 - echo "set git user to \"${GITUSER}\"..." + echo -e "set git user to ${TXT_BLUE}\"${GITUSER}\"${OFF}..." git config user.name "${GITUSER}" || exit 1 - echo "set git e-mail to \"${GITMAIL}\"..." + echo -e "set git e-mail to ${TXT_BLUE}\"${GITMAIL}\"${OFF}..." git config user.email "${GITMAIL}" || exit 1 git config --global push.default simple || exit 1 fi if [[ ! "${GITBRANCH}" == "master" ]] ; then git checkout "${GITBRANCH}" || exit 1 fi echo "cloning RJVB local repository (patched Qt5)" cd "${GITROOT}" || exit 1 git clone "${RJVBREPO}" || exit 1 if ! [ -d ${SRCPATH} ] ; then - echo "sudo ln -s ${GITROOT}/rkward/macports/ ${SRCPATH}" + echo -en "sudo ln -s ${GITROOT}/rkward/macports/ ${SRCPATH}${OFF}..." sudo ln -s "${GITROOT}/rkward/macports/" "${SRCPATH}" || exit 1 + alldone fi linkbuildscript "${USERBIN}" if [ -f "${HOME}/.bash_profile" ] ; then BPFPATH=$(grep "^PATH" "${HOME}/.bash_profile") if ! $(echo "${BPFPATH}" | grep -q "${USERBIN}/:${MPTINST}/bin/:") ; then echo "PATH=${USERBIN}/:${MPTINST}/bin/:\$PATH" >> "${HOME}/.bash_profile" fi if ! $(echo "${BPFPATH}" | grep -q "KDE_SESSION_VERSION") ; then echo "export KDE_SESSION_VERSION=5" >> "${HOME}/.bash_profile" fi else echo "PATH=${USERBIN}/:${MPTINST}/bin/:\$PATH" > "${HOME}/.bash_profile" echo "export KDE_SESSION_VERSION=5" >> "${HOME}/.bash_profile" fi . "${HOME}/.bash_profile" cd "${OLDWD}" || exit 1 - echo "successfully completed reincarnation of ${GITROOT} -- you can now invoke the \"-F\" option!" + echo -e "${TXT_GREEN}successfully completed reincarnation of${OFF} ${TXT_BLUE}${GITROOT}${OFF} -- you can now invoke the \"-F\" option!" echo "but you should call the following first:" - echo ". \"${HOME}/.bash_profile\"" + echo -e ". ${TXT_BLUE}\"${HOME}/.bash_profile\"${OFF}" exit 0 fi # do a full clean installation if $FRESHMCP ; then if ! [ -d ${SRCPATH} ] ; then - echo "can't find ${SRCPATH} -- you should call the script with \"-G\" before setting up MacPorts!" - exit 1 + error "can't find ${TXT_BLUE}${SRCPATH}${OFF} -- you should call the script with \"-G\" before setting up MacPorts!" + fi + if ! [ -d "${MPTINST}" ] ; then + echo -en "create missing directory ${TXT_BLUE}${MPTINST}${OFF}..." + sudo mkdir -p "${MPTINST}" || exit 1 + alldone fi - echo "creating ${MPTINST}..." - sudo mkdir -p "${MPTINST}" || exit 1 - mkdir /tmp/MP && cd /tmp/MP + mkdir /tmp/MP || error "can't create ${TXT_BLUE}/tmp/MP${OFF}" + cd /tmp/MP || exit 1 curl "https://distfiles.macports.org/MacPorts/MacPorts-${MCPVERS}.tar.bz2" -o "MacPorts-${MCPVERS}.tar.bz2" || exit 1 tar xjvf "MacPorts-${MCPVERS}.tar.bz2" || exit 1 cd "MacPorts-${MCPVERS}" || exit 1 ./configure --prefix="${MPTINST}" || exit 1 make || exit 1 sudo make install || exit 1 cd "${OLDWD}" || exit 1 rm -rf /tmp/MP || exit 1 echo "update MacPorts configuration" sudo sed -i -e "s+#\(portautoclean[[:space:]]*\)yes+\1no+" "${MPTINST}/etc/macports/macports.conf" sudo sed -i -e "s+\(applications_dir[[:space:]]*\)/Applications/MacPorts+\1${APPLDIR}+" "${MPTINST}/etc/macports/macports.conf" sudo "${MPTINST}/bin/port" -v selfupdate || exit 1 - echo "adding local portfiles to ${MPTINST}/etc/macports/sources.conf..." + echo -e "adding local portfiles to ${TXT_BLUE}${MPTINST}/etc/macports/sources.conf${OFF}..." # sudo sed -i -e "s+rsync://rsync.macports.org.*\[default\]+file://${SRCPATH}/\\`echo -e '\n\r'`&+" "${MPTINST}/etc/macports/sources.conf" || exit 1 # adding newlines with sed in macOS is totally f**ked up, here's an ugly workaround in three steps sudo sed -i -e $'s+rsync://rsync.macports.org.*\[default\]+file://_GITROOT_/macstrop/\\\nfile://_SRCPATH_/\\\n&+' "${MPTINST}/etc/macports/sources.conf" || exit 1 sudo sed -i -e "s+file://_SRCPATH_+file://${SRCPATH}+" "${MPTINST}/etc/macports/sources.conf" || exit 1 sudo sed -i -e "s+file://_GITROOT_+file://${GITROOT}+" "${MPTINST}/etc/macports/sources.conf" || exit 1 # install a needed gcc/clang first? if [[ $CMPLR ]] ; then sudo "${MPTINST}/bin/port" -v install "${CMPLR}" "${LLVMFIX}" || exit 1 fi if [[ $CLANG ]] ; then sudo "${MPTINST}/bin/port" -v install "${CLANG}" "${LLVMFIX}" || exit 1 fi - echo "syncing PortGroup files" - sudo rsync -av "${GITROOT}/macstrop/_resources/port1.0/" "${MPTINST}/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/" || exit 1 + updatePortGrous # (re-)generate portindex cd "${SRCPATH}" || exit 1 "${MPTINST}/bin/portindex" || exit 1 cd "${GITROOT}/macstrop" || exit 1 "${MPTINST}/bin/portindex" || exit 1 cd "${OLDWD}" || exit 1 sudo "${MPTINST}/bin/port" -v selfupdate || exit 1 - echo "successfully completed reincarnation of ${MPTINST}!" + echo -e "${TXT_GREEN}successfully completed reincarnation of${OFF} ${TXT_BLUE}${MPTINST}${OFF}${TXT_GREEN}!${OFF}" exit 0 fi +if $PORTGROUPS ; then + updatePortGrous +fi + if $BUILDQT ; then - echo "sudo ${MPTINST}/bin/port -v install qt5-kde" + echo -e "sudo ${TXT_BLUE}${MPTINST}/bin/port${OFF} -v install qt5-kde" sudo "${MPTINST}/bin/port" -v install qt5-kde || exit 1 + echo -e "sudo ${TXT_BLUE}${MPTINST}/bin/port${OFF} -v install kf5-osx-integration" sudo "${MPTINST}/bin/port" -v install kf5-osx-integration || exit 1 + alldone fi # update installed ports if $UPMPORTS ; then echo "updating RJVB local repository (patched Qt5)" cd "${GITROOT}/macstrop" || exit 1 git pull --rebase origin || exit 1 - echo "syncing RJVB PortGroup files" - sudo rsync -av "${GITROOT}/macstrop/_resources/port1.0/" "${MPTINST}/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/" || exit 1 + updatePortGrous "${MPTINST}/bin/portindex" || exit 1 cd "${OLDWD}" || exit 1 - echo "sudo ${MPTINST}/bin/port selfupdate" + echo -e "sudo ${TXT_BLUE}${MPTINST}/bin/port${OFF} selfupdate" sudo "${MPTINST}/bin/port" selfupdate - echo "sudo ${MPTINST}/bin/port -v upgrade outdated" + echo -e "sudo ${TXT_BLUE}${MPTINST}/bin/port${OFF} -v upgrade outdated" sudo "${MPTINST}/bin/port" -v upgrade outdated # get rid of inactive stuff - echo "sudo ${MPTINST}/bin/port clean inactive" + echo -e "sudo ${TXT_BLUE}${MPTINST}/bin/port${OFF} clean inactive" sudo "${MPTINST}/bin/port" clean inactive - echo "sudo ${MPTINST}/bin/port -f uninstall inactive" + echo -e "sudo ${TXT_BLUE}${MPTINST}/bin/port${OFF} -f uninstall inactive" sudo "${MPTINST}/bin/port" -f uninstall inactive + echo -e "sudo ${TXT_BLUE}${MPTINST}/bin/port${OFF} reclaim ${TXT_DGRAY}# remove unused distfiles${OFF}" + sudo "${MPTINST}/bin/port" reclaim + alldone fi # remove previous installation and its build left-overs if $UPRKWARD ; then INSTALLEDPORTS=$("${MPTINST}/bin/port" installed) # make sure each instance of previous RKWard installations is removed first for i in kf5-rkward kf5-rkward-devel kf5-rkward-binary kf5-rkward-binary-devel kf5-rkward-debug kf5-rkward-debug-devel ; do if [[ $(echo "$INSTALLEDPORTS" | grep "[[:space:]]${i}[[:space:]]" 2> /dev/null ) ]] ; then - echo "sudo ${MPTINST}/bin/port uninstall ${i}" + echo -e "sudo ${TXT_BLUE}${MPTINST}/bin/port${OFF} uninstall ${i}" sudo "${MPTINST}/bin/port" uninstall "${i}" - echo "sudo ${MPTINST}/bin/port clean ${i}" + echo -e "sudo ${TXT_BLUE}${MPTINST}/bin/port${OFF} clean ${i}" sudo "${MPTINST}/bin/port" clean "${i}" fi done # build and install recent version - echo "sudo ${MPTINST}/bin/port -v install ${PTARGET} ${PVARIANT}" + echo -e "sudo ${TXT_BLUE}${MPTINST}/bin/port${OFF} -v install ${PTARGET} ${PVARIANT}" sudo "${MPTINST}/bin/port" -v install ${PTARGET} ${PVARIANT} || exit 1 + alldone fi # remove static libraries, they're a waste of disk space if $RMSTLIBS ; then - echo "deleting all static libs in ${MPTINST}/lib/..." + echo -e "deleting all static libs in ${TXT_BLUE}${MPTINST}/lib/${OFF}..." sudo rm ${MPTINST}/lib/*.a - echo "deleting all static libs in ${MPTINST}/var/macports/build..." + echo -e "deleting all static libs in ${TXT_BLUE}${MPTINST}/var/macports/build${OFF}..." #find "${MPTINST}/var/macports/build" -name "*.a" -exec sudo rm \{\} \; # only remove libs in destroot/libs/ find -E "${MPTINST}/var/macports/build" -type f -regex '.*/destroot'${MPTINST}'/lib/[^/]*\.a' -exec sudo rm \{\} \; + alldone fi # list disk usage of ports if $LSDSKUSG ; then cd "${MPTINST}/var/macports/build/" SBFLDRS=$(ls) for i in ${SBFLDRS} ; do echo $(du -sh ${i}/$(ls ${i}/)/work/destroot | sed -e "s+\(${BLDPRFX}\)\(.*\)\(/work/destroot\)+\2+") done fi # set some variables if $COPYMDMD ; then # get version information of installed ports PORTVERS=$("${MPTINST}/bin/port" list $PTARGET | sed -e "s/.*@//;s/[[:space:]].*//") if $GETTARGVERS ; then if $DEVEL ; then # we moved to git # TARGETVERS=${PORTVERS}$(svn info "$SVNREPO" | grep "^Revision:" | sed "s/[^[:digit:]]*//") # # this one-liner would give us the latest commit hash, but no date -- bad for humans and sorting: # TARGETVERS=${PORTVERS}$(git ls-remote http://anongit.kde.org/rkward master | cut -c 1-7) # # so here's something a little more elaborate... TEMPFILE=$(mktemp /tmp/git_rev.XXXXXX || exit 1) if ! [[ $(which wget) == "" ]] ; then wget -q -O "${TEMPFILE}" "http://quickgit.kde.org/?p=rkward.git" || exit 1 GOTQUICKGIT=true elif ! [[ $(which curl) == "" ]] ; then curl -s -o "${TEMPFILE}" "http://quickgit.kde.org/?p=rkward.git" || exit 1 GOTQUICKGIT=true else - echo "neither wget nor curl found, only commit can be used!" + echo -e "${TXT_RED}neither wget nor curl found, only commit can be used!${OFF}" TARGETVERS=${PORTVERS}-git$(git ls-remote http://anongit.kde.org/rkward master | cut -c 1-7) GOTQUICKGIT=false fi if ${GOTQUICKGIT} ; then CHANGEDATE=$(grep "last change.*