Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Oct 2018 05:36:11 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r482879 - in head/science: . molsketch molsketch/files
Message-ID:  <201810240536.w9O5aBiN028191@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Wed Oct 24 05:36:11 2018
New Revision: 482879
URL: https://svnweb.freebsd.org/changeset/ports/482879

Log:
  New port: science/molsketch: 2D molecule editor

Added:
  head/science/molsketch/
  head/science/molsketch/Makefile   (contents, props changed)
  head/science/molsketch/distinfo   (contents, props changed)
  head/science/molsketch/files/
  head/science/molsketch/files/patch-CMakeLists.txt   (contents, props changed)
  head/science/molsketch/files/patch-buildvariables   (contents, props changed)
  head/science/molsketch/files/patch-molsketch_programversion.cpp   (contents, props changed)
  head/science/molsketch/files/patch-molsketch_programversion.h   (contents, props changed)
  head/science/molsketch/pkg-descr   (contents, props changed)
  head/science/molsketch/pkg-plist   (contents, props changed)
Modified:
  head/science/Makefile

Modified: head/science/Makefile
==============================================================================
--- head/science/Makefile	Wed Oct 24 05:10:44 2018	(r482878)
+++ head/science/Makefile	Wed Oct 24 05:36:11 2018	(r482879)
@@ -146,6 +146,7 @@
     SUBDIR += mmtf
     SUBDIR += mol2ps
     SUBDIR += molgif
+    SUBDIR += molsketch
     SUBDIR += mpb
     SUBDIR += mpqc
     SUBDIR += msms

Added: head/science/molsketch/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/molsketch/Makefile	Wed Oct 24 05:36:11 2018	(r482879)
@@ -0,0 +1,30 @@
+# $FreeBSD$
+
+PORTNAME=	molsketch
+DISTVERSION=	0.5.2
+DISTVERSIONSUFFIX=	-src
+CATEGORIES=	science
+MASTER_SITES=	SF/${PORTNAME}/Molsketch/Boron-11%20${DISTVERSION}/
+DISTNAME=	Molsketch-${DISTVERSIONFULL}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	2D molecule editor
+
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+LIB_DEPENDS=	libopenbabel.so:science/openbabel
+
+USES=		cmake:outsource desktop-file-utils localbase:ldflags pkgconfig qt:5 shared-mime-info
+USE_QT=		core gui network printsupport svg widgets buildtools_build qmake_build
+USE_LDCONFIG=	${PREFIX}/lib/molsketch
+
+CMAKE_ARGS=	-DMSK_PREFIX:STRING=${PREFIX}
+
+WRKSRC=		${WRKDIR}/Molsketch-${DISTVERSION}
+
+OPTIONS_DEFINE=	DOCS
+
+PORTDOCS=	*
+
+.include <bsd.port.mk>

Added: head/science/molsketch/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/molsketch/distinfo	Wed Oct 24 05:36:11 2018	(r482879)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1540350640
+SHA256 (Molsketch-0.5.2-src.tar.gz) = 87a4382c2cac8eb280f69ea2f7bd26f945adbce6012a347684f24304b1c491ae
+SIZE (Molsketch-0.5.2-src.tar.gz) = 1670642

Added: head/science/molsketch/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/molsketch/files/patch-CMakeLists.txt	Wed Oct 24 05:36:11 2018	(r482879)
@@ -0,0 +1,29 @@
+--- CMakeLists.txt.orig	2018-08-15 17:18:23 UTC
++++ CMakeLists.txt
+@@ -39,7 +39,7 @@ configure_file("${CMAKE_MODULE_PATH}/cma
+ add_custom_target(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
+ 
+ # Enabling debugging symbols
+-set(CMAKE_BUILD_TYPE Debug)
++#set(CMAKE_BUILD_TYPE Debug)
+ 
+ # Enabling shared libraries
+ set(BUILD_SHARED_LIBS ON)
+@@ -119,7 +119,7 @@ if( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT 
+ endif( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT APPLE )
+ 
+ if(NOT FORCEQt4)
+-        set(QTVERSIONSUFFIX "-qt5")
++        set(QTVERSIONSUFFIX "")
+ endif(NOT FORCEQt4)
+ 
+ set(OBABEL_IFACE_NAME "libobabeliface${QTVERSIONSUFFIX}.so")
+@@ -130,7 +130,7 @@ endif(WIN32 OR WIN64)
+ 
+ add_definitions(-DOBABEL_IFACE_LOCATION="\\\"${MSK_INSTALL_LIBS}/${OBABEL_IFACE_NAME}\\\"")
+ 
+-set(CMAKE_INSTALL_PREFIX ${MSK_PREFIX})
++#set(CMAKE_INSTALL_PREFIX ${MSK_PREFIX})
+ 
+ ################ Adding subdirs
+ add_subdirectory(libmolsketch)

Added: head/science/molsketch/files/patch-buildvariables
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/molsketch/files/patch-buildvariables	Wed Oct 24 05:36:11 2018	(r482879)
@@ -0,0 +1,10 @@
+--- buildvariables.orig	2018-10-24 03:59:40 UTC
++++ buildvariables
+@@ -2,6 +2,6 @@
+ "Executable destination dir";MSK_INSTALL_BINS;/bin;/bin
+ "Headers destination dir";MSK_INSTALL_INCLUDES;/include;/include
+ "Documentation destination dir";MSK_INSTALL_DOCS;/share/doc/molsketch;/doc
+-"Libraries (64bit) destination dir";MSK_INSTALL_LIBS64;/lib64/molsketch;/lib
++"Libraries (64bit) destination dir";MSK_INSTALL_LIBS64;/lib/molsketch;/lib
+ "Libraries (32bit) destination dir";MSK_INSTALL_LIBS;/lib/molsketch;/lib
+ "Build OpenBabel interface";MSK_OBABELIFACE;true;true

Added: head/science/molsketch/files/patch-molsketch_programversion.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/molsketch/files/patch-molsketch_programversion.cpp	Wed Oct 24 05:36:11 2018	(r482879)
@@ -0,0 +1,15 @@
+--- molsketch/programversion.cpp.orig	2018-10-24 03:35:50 UTC
++++ molsketch/programversion.cpp
+@@ -88,10 +88,10 @@ QString ProgramVersion::toString() const
+   return QString("%1.%2.%3.%4").arg(d->major).arg(d->minor).arg(d->patch).arg(d->build);
+ }
+ 
+-unsigned int ProgramVersion::minor() const {
++unsigned int ProgramVersion::minorx() const {
+   return d->minor;
+ }
+ 
+-unsigned int ProgramVersion::major() const {
++unsigned int ProgramVersion::majorx() const {
+   return d->major;
+ }

Added: head/science/molsketch/files/patch-molsketch_programversion.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/molsketch/files/patch-molsketch_programversion.h	Wed Oct 24 05:36:11 2018	(r482879)
@@ -0,0 +1,13 @@
+--- molsketch/programversion.h.orig	2018-10-24 03:35:24 UTC
++++ molsketch/programversion.h
+@@ -30,8 +30,8 @@ public:
+   ProgramVersion(const QString& version = "");
+   ProgramVersion(int major, int minor = 0, int patch = 0, int build = 0);
+   ~ProgramVersion();
+-  unsigned int major() const;
+-  unsigned int minor() const;
++  unsigned int majorx() const;
++  unsigned int minorx() const;
+   unsigned int patch() const;
+   unsigned int build() const;
+   bool operator ==(const ProgramVersion& other) const;

Added: head/science/molsketch/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/molsketch/pkg-descr	Wed Oct 24 05:36:11 2018	(r482879)
@@ -0,0 +1,4 @@
+Molsketch is a 2D molecular editing tool.
+Its goal is to help you draw molecules quick and easily.
+
+WWW: https://molsketch.sourceforge.net/

Added: head/science/molsketch/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/molsketch/pkg-plist	Wed Oct 24 05:36:11 2018	(r482879)
@@ -0,0 +1,86 @@
+bin/molsketch
+include/libmolsketch/TextInputItem.h
+include/libmolsketch/abstractxmlobject.h
+include/libmolsketch/actions/abstractitemaction.h
+include/libmolsketch/actions/abstractrecursiveitemaction.h
+include/libmolsketch/actions/alignmentaction.h
+include/libmolsketch/actions/arrowtypeaction.h
+include/libmolsketch/actions/arrowtypewidget.h
+include/libmolsketch/actions/bondtypeaction.h
+include/libmolsketch/actions/bondtypewidget.h
+include/libmolsketch/actions/coloraction.h
+include/libmolsketch/actions/deleteaction.h
+include/libmolsketch/actions/drawaction.h
+include/libmolsketch/actions/flipbondaction.h
+include/libmolsketch/actions/flipstereobondsaction.h
+include/libmolsketch/actions/frameaction.h
+include/libmolsketch/actions/frametypeaction.h
+include/libmolsketch/actions/frametypewidget.h
+include/libmolsketch/actions/genericaction.h
+include/libmolsketch/actions/incdecaction.h
+include/libmolsketch/actions/itemgrouptypeaction.h
+include/libmolsketch/actions/itemtypeaction.h
+include/libmolsketch/actions/itemtypeselectionaction.h
+include/libmolsketch/actions/itemtypewidget.h
+include/libmolsketch/actions/linewidthaction.h
+include/libmolsketch/actions/mechanismarrowaction.h
+include/libmolsketch/actions/multiaction.h
+include/libmolsketch/actions/periodictablewidget.h
+include/libmolsketch/actions/reactionarrowaction.h
+include/libmolsketch/actions/ringaction.h
+include/libmolsketch/actions/rotateaction.h
+include/libmolsketch/actions/textaction.h
+include/libmolsketch/actions/transformcommand.h
+include/libmolsketch/arrow.h
+include/libmolsketch/arrowpopup.h
+include/libmolsketch/atom.h
+include/libmolsketch/atompopup.h
+include/libmolsketch/bond.h
+include/libmolsketch/boundingboxlinker.h
+include/libmolsketch/colorbutton.h
+include/libmolsketch/commands.h
+include/libmolsketch/constants.h
+include/libmolsketch/coordinatedelegate.h
+include/libmolsketch/coordinatemodel.h
+include/libmolsketch/coordinatetableview.h
+include/libmolsketch/electronsystem.h
+include/libmolsketch/element.h
+include/libmolsketch/fileio.h
+include/libmolsketch/fontchooser.h
+include/libmolsketch/frame.h
+include/libmolsketch/generics.h
+include/libmolsketch/graphicsitem.h
+include/libmolsketch/grid.h
+include/libmolsketch/helptextemptydock.h
+include/libmolsketch/helptextonemptylabel.h
+include/libmolsketch/librarymodel.h
+include/libmolsketch/libraryview.h
+include/libmolsketch/lineupaction.h
+include/libmolsketch/lonepair.h
+include/libmolsketch/math2d.h
+include/libmolsketch/mimemolecule.h
+include/libmolsketch/molecule.h
+include/libmolsketch/moleculemodelitem.h
+include/libmolsketch/moleculepopup.h
+include/libmolsketch/molscene.h
+include/libmolsketch/molview.h
+include/libmolsketch/propertiesdock.h
+include/libmolsketch/propertieswidget.h
+include/libmolsketch/qtversionmacros.h
+include/libmolsketch/radicalelectron.h
+include/libmolsketch/scenepropertieswidget.h
+include/libmolsketch/scenesettings.h
+include/libmolsketch/settingsconnector.h
+include/libmolsketch/settingsfacade.h
+include/libmolsketch/settingsitem.h
+include/libmolsketch/stringify.h
+include/libmolsketch/textitem.h
+include/libmolsketch/xmlobjectinterface.h
+lib/molsketch/libmolsketch.so
+lib/molsketch/libobabeliface.so
+share/applications/molsketch.desktop
+share/icons/hicolor/scalable/apps/molsketch.svg
+share/icons/hicolor/scalable/mimetypes/application-x-molsketch.svg
+share/metainfo/net.sourceforge.molsketch.appdata.xml
+share/mime/packages/molsketch.xml
+share/pixmaps/molsketch.xpm



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810240536.w9O5aBiN028191>