From owner-svn-ports-all@freebsd.org Fri Sep 14 07:44:48 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D635510A6A46; Fri, 14 Sep 2018 07:44:47 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 82DA877C72; Fri, 14 Sep 2018 07:44:47 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 756F821724; Fri, 14 Sep 2018 07:44:47 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w8E7ilGr088213; Fri, 14 Sep 2018 07:44:47 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w8E7ikrb088207; Fri, 14 Sep 2018 07:44:46 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201809140744.w8E7ikrb088207@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Fri, 14 Sep 2018 07:44:46 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r479761 - in head/science: . luscus luscus/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/science: . luscus luscus/files X-SVN-Commit-Revision: 479761 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Sep 2018 07:44:48 -0000 Author: yuri Date: Fri Sep 14 07:44:45 2018 New Revision: 479761 URL: https://svnweb.freebsd.org/changeset/ports/479761 Log: New port: science/luscus: Molecular editor and viewer Added: head/science/luscus/ head/science/luscus/Makefile (contents, props changed) head/science/luscus/distinfo (contents, props changed) head/science/luscus/files/ head/science/luscus/files/patch-CMakeLists.txt (contents, props changed) head/science/luscus/pkg-descr (contents, props changed) head/science/luscus/pkg-plist (contents, props changed) Modified: head/science/Makefile Modified: head/science/Makefile ============================================================================== --- head/science/Makefile Fri Sep 14 05:37:12 2018 (r479760) +++ head/science/Makefile Fri Sep 14 07:44:45 2018 (r479761) @@ -120,6 +120,7 @@ SUBDIR += libxc SUBDIR += linsmith SUBDIR += lm + SUBDIR += luscus SUBDIR += madness SUBDIR += massxpert SUBDIR += mbdyn Added: head/science/luscus/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/luscus/Makefile Fri Sep 14 07:44:45 2018 (r479761) @@ -0,0 +1,34 @@ +# $FreeBSD$ + +PORTNAME= luscus +DISTVERSION= 0.8.5 +CATEGORIES= science +MASTER_SITES= SF/${PORTNAME}/ +DISTNAME= ${PORTNAME}_${DISTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Molecular editor and viewer + +LICENSE= AFL +LICENSE_NAME= Academic Free License +LICENSE_FILE= ${WRKSRC}/License.txt +LICENSE_PERMS= auto-accept dist-mirror pkg-mirror + +LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 \ + libgdkglext-x11-1.0.so:x11-toolkits/gtkglext +RUN_DEPENDS= bash:shells/bash \ + babel:science/openbabel + +USES= cmake:outsource gettext-runtime pkgconfig shebangfix +SHEBANG_GLOB= *.sh +USE_GNOME= atk cairo gdkpixbuf2 glib20 gtk20 pango pangox-compat +USE_GL= gl glu +USE_XORG= x11 + +post-patch: + @${REINPLACE_CMD} 's|/etc/luscus|${DATADIR}|' ${WRKSRC}/gv_system.c + @${REINPLACE_CMD} -i '' 's|$$HOME/\.${PORTNAME}/|${LOCALBASE}/bin/|' ${WRKSRC}/*/*/*.sh + @${REINPLACE_CMD} -i '' 's|$$RUNDIR/|${LOCALBASE}/bin/|' ${WRKSRC}/*/*/*.sh + +.include Added: head/science/luscus/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/luscus/distinfo Fri Sep 14 07:44:45 2018 (r479761) @@ -0,0 +1,3 @@ +TIMESTAMP = 1534127415 +SHA256 (luscus_0.8.5.tar.gz) = 1f54f9f2d1efe612cc698af59465526e595dfb0bb0ce9960432be61183eb0e33 +SIZE (luscus_0.8.5.tar.gz) = 261728 Added: head/science/luscus/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/luscus/files/patch-CMakeLists.txt Fri Sep 14 07:44:45 2018 (r479761) @@ -0,0 +1,67 @@ +--- CMakeLists.txt.orig 2018-03-06 12:11:32 UTC ++++ CMakeLists.txt +@@ -7,8 +7,10 @@ set(luscus_VERSION_MAJOR 0) + set(luscus_VERSION_MINOR 8) + set(luscus_VERSION_REVISION 5) + +-check_function_exists(strcasestr HAVE_STRCASESTR) +-check_function_exists(strcasecmp HAVE_STRCASECMP) ++#check_function_exists(strcasestr HAVE_STRCASESTR) ++#check_function_exists(strcasecmp HAVE_STRCASECMP) ++add_compile_definitions(HAVE_STRCASESTR) ++add_compile_definitions(HAVE_STRCASECMP) + + configure_file("${PROJECT_SOURCE_DIR}/luscus.h.in" "${PROJECT_BINARY_DIR}/luscus.h") + +@@ -23,12 +25,12 @@ set(USE_GTK3 ON) + + # CMAKE_INSTALL_PREFIX + +-if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") ++if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "^(FreeBSD|DragonFly)$") + add_definitions(-DLINUX) + pkg_check_modules(GTK2 QUIET gtk+-2.0 gl glu) + # if (EXISTS ${CMAKE_PREFIX_PATH}) +- if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT MATCHES 1) +- set(CONFIG_DIR "/etc/luscus") ++ if (TRUE OR CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT MATCHES 1) ++ set(CONFIG_DIR "${CMAKE_INSTALL_PREFIX}/share/luscus") + # message(status " CMAKE_PREFIX_PATH NOT DEFINED!") # DEBUG + else () + set(CONFIG_DIR "$ENV{HOME}/.luscus") +@@ -95,7 +97,7 @@ if(USE_GTK3) + endif(NOT GTK3_FOUND) + endif(USE_GTK3) + +-if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") ++if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "^(FreeBSD|DragonFly)$") + add_definitions(-DLINUX) + elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows") + add_definitions(-DWINDOWS) +@@ -108,11 +110,11 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Linu + #option(COMPILE_PLUGINS ON) + option(INSTALL_BABEL_PLUGINS ON) + +-if(HAVE_STRCASESTR) ++#if(HAVE_STRCASESTR) + add_executable(luscus main.c gtk_gui.c gv_menubar.c gv_system.c gv_notebook.c backup_file.c findsym.c gv_about.c gv_atoms.c gv_geom.c gv_fragments.c gv_gtk_atom_list.c gv_gtk_multiview.c gv_notebook.c luscus_gtk_util.c mystring.c screenshot.c gveps.c gvgrp.c findsym.c gv_gtk_help.c gv_gtk_xyz_editor.c pixeldata.c write_file.c read_file.c surface.c gv_gtk_make_graph.c luscus_gtk_handle.c mcube.c vstring.c) +-else(HAVE_STRCASESTR) +-add_executable(luscus main.c gtk_gui.c gv_menubar.c gv_system.c gv_notebook.c backup_file.c findsym.c gv_about.c gv_atoms.c gv_geom.c gv_fragments.c gv_gtk_atom_list.c gv_gtk_multiview.c gv_notebook.c luscus_gtk_util.c mystring.c screenshot.c gveps.c gvgrp.c findsym.c gv_gtk_help.c gv_gtk_xyz_editor.c pixeldata.c write_file.c read_file.c surface.c gv_gtk_make_graph.c luscus_gtk_handle.c mcube.c vstring.c stdext.c) +-endif(HAVE_STRCASESTR) ++#else(HAVE_STRCASESTR) ++#add_executable(luscus main.c gtk_gui.c gv_menubar.c gv_system.c gv_notebook.c backup_file.c findsym.c gv_about.c gv_atoms.c gv_geom.c gv_fragments.c gv_gtk_atom_list.c gv_gtk_multiview.c gv_notebook.c luscus_gtk_util.c mystring.c screenshot.c gveps.c gvgrp.c findsym.c gv_gtk_help.c gv_gtk_xyz_editor.c pixeldata.c write_file.c read_file.c surface.c gv_gtk_make_graph.c luscus_gtk_handle.c mcube.c vstring.c stdext.c) ++#endif(HAVE_STRCASESTR) + + + if(USE_GTK3) +@@ -167,8 +169,8 @@ add_subdirectory(plugins/xyz) + add_subdirectory(plugins/diffdens) + + if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Windows") +- find_program(HAS_BABEL NAME babel PATHS ${COMPILER_LOCATION}) +- if(HAS_BABEL) ++ #find_program(HAS_BABEL NAME babel PATHS ${COMPILER_LOCATION}) ++ if(TRUE OR HAS_BABEL) + message(status " found babel; installing babel plugins!") + add_subdirectory(plugins_babel/cif) + add_subdirectory(plugins_babel/g03) Added: head/science/luscus/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/luscus/pkg-descr Fri Sep 14 07:44:45 2018 (r479761) @@ -0,0 +1,11 @@ +Luscus is the program for graphical display and editing of molecular systems. +The program allows fast and easy building and/or editing different molecular +structures, up to several thousands of atoms large. Luscus can also visualize +dipole moments, normal modes, molecular orbitals, electron densities and +electrostatic potentials. In addition, simple geometrical objects can be +rendered in order to point out a geometrical feature or a physical quantity. +The program is developed as a graphical interface for MOLCAS program package, +however it's adaptive nature makes possible using luscus with other +computational program packages and chemical formats. + +WWW: https://sourceforge.net/projects/luscus/ Added: head/science/luscus/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/luscus/pkg-plist Fri Sep 14 07:44:45 2018 (r479761) @@ -0,0 +1,62 @@ +bin/babel_cif_in.sh +bin/babel_cif_out.sh +bin/babel_g03_in.sh +bin/babel_g03_out.sh +bin/babel_g98_in.sh +bin/babel_g98_out.sh +bin/babel_mopac_in.sh +bin/babel_mopac_out.sh +bin/babel_pdb_in.sh +bin/babel_pdb_out.sh +bin/diffdens.exe +bin/gamess2lus.exe +bin/gv2xyz.exe +bin/lus2gvorb.exe +bin/luscus +bin/molden2lus.exe +bin/xyz2gv.exe +%%DATADIR%%/atoms.rc +%%DATADIR%%/calculation.rc +%%DATADIR%%/fragments.rc +%%DATADIR%%/frg01.gv +%%DATADIR%%/frg01.xpm +%%DATADIR%%/frg02.gv +%%DATADIR%%/frg02.xpm +%%DATADIR%%/frg03.gv +%%DATADIR%%/frg03.xpm +%%DATADIR%%/frg04.gv +%%DATADIR%%/frg04.xpm +%%DATADIR%%/frg05.gv +%%DATADIR%%/frg05.xpm +%%DATADIR%%/frg06.gv +%%DATADIR%%/frg06.xpm +%%DATADIR%%/frg07.gv +%%DATADIR%%/frg07.xpm +%%DATADIR%%/frg08.gv +%%DATADIR%%/frg08.xpm +%%DATADIR%%/frg09.gv +%%DATADIR%%/frg09.xpm +%%DATADIR%%/frg10.gv +%%DATADIR%%/frg10.xpm +%%DATADIR%%/frg11.gv +%%DATADIR%%/frg11.xpm +%%DATADIR%%/frg12.gv +%%DATADIR%%/frg12.xpm +%%DATADIR%%/frg13.gv +%%DATADIR%%/frg13.xpm +%%DATADIR%%/frg14.gv +%%DATADIR%%/frg14.xpm +%%DATADIR%%/frg15.gv +%%DATADIR%%/frg15.xpm +%%DATADIR%%/frg16.gv +%%DATADIR%%/frg16.xpm +%%DATADIR%%/frg17.gv +%%DATADIR%%/frg17.xpm +%%DATADIR%%/frg18.gv +%%DATADIR%%/frg18.xpm +%%DATADIR%%/frg19.gv +%%DATADIR%%/frg19.xpm +%%DATADIR%%/frg20.gv +%%DATADIR%%/frg20.xpm +%%DATADIR%%/luscus.rc +%%DATADIR%%/plugin.rc