2019-02-14 01:54:56 +01:00
PORTNAME = opsin
2019-05-11 08:00:09 +02:00
DISTVERSION = 3.0.20190223
2022-09-05 00:29:45 +02:00
PORTREVISION = 1
2019-02-14 01:54:56 +01:00
CATEGORIES = science java
MASTER_SITES = https://bitbucket.org/${ BB_ACCOUNT } /${ PORTNAME } /get/${ BB_COMMIT } ${ EXTRACT_SUFX } ?dummy= /:src
DISTFILES = ${ PORTNAME } -${ DISTVERSION } ${ EXTRACT_SUFX } :src
MAINTAINER = yuri@FreeBSD.org
COMMENT = Open Parser for Systematic IUPAC Nomenclature of chemical names
2022-09-07 23:06:12 +02:00
WWW = https://bitbucket.org/dan2097/opsin/src/default/
2019-02-14 01:54:56 +01:00
LICENSE = MIT
LICENSE_FILE = ${ WRKSRC } /LICENSE.txt
BUILD_DEPENDS = mvn:devel/maven
USE_JAVA = yes
2022-09-05 00:29:45 +02:00
JAVA_VERSION = 17 # Java 8 fails on aarch64: Internal Error (assembler_aarch64.hpp:237), pid=29730, tid=0x000000000002d236 guarantee(val < (1U << nbits)) failed: Field too big for insn
2019-02-14 01:54:56 +01:00
NO_ARCH = yes
BB_ACCOUNT = dan2097
2019-05-11 08:00:09 +02:00
BB_COMMIT = 9b25f7546b67
2019-02-14 01:54:56 +01:00
WRKSRC = ${ WRKDIR } /${ BB_ACCOUNT } -${ PORTNAME } -${ BB_COMMIT }
SUB_FILES = ${ PORTNAME }
SUB_LIST = JAVA = ${ JAVA } PORTNAME = ${ PORTNAME } PORTVERSION = ${ PORTVERSION }
PLIST_FILES = bin/${ PORTNAME } \
${ JAVAJARDIR } /${ PORTNAME } -${ PORTVERSION } -jar-with-dependencies.jar
# to rebuild the deps archive:
# 1. set DEV_UPDATE_MODE=yes
# 2. make makesum build
# 3. upload the *-deps archive
# 4. set DEV_UPDATE_MODE=no
# 5. make clean makesum
DEV_UPDATE_MODE = no
. i f (${DEV_UPDATE_MODE} = = "yes" )
post-build :
@cd ${ WRKDIR } && ${ TAR } czf ${ DISTDIR } /${ PORTNAME } -${ DISTVERSION } -deps${ EXTRACT_SUFX } .m2
@${ ECHO } " (!!!) Please upload the maven deps archive: ${ DISTDIR } / ${ PORTNAME } - ${ DISTVERSION } -deps ${ EXTRACT_SUFX } "
. e l s e
MASTER_SITES += LOCAL/yuri/:maven
DISTFILES += ${ PORTNAME } -${ DISTVERSION } -deps${ EXTRACT_SUFX } :maven
MVN_ARGS = --offline
. e n d i f
do-build :
@cd ${ WRKSRC } && ${ SETENV } ${ MAKE_ENV } \
${ LOCALBASE } /bin/mvn ${ MVN_ARGS } \
-fae install \
-Dmaven.test.skip= true \
-Duser.home= ${ WRKDIR } \
package assembly:assembly
do-install :
${ INSTALL_SCRIPT } ${ WRKDIR } /${ PORTNAME } ${ STAGEDIR } ${ PREFIX } /bin
${ INSTALL_DATA } ${ WRKSRC } /target/${ PORTNAME } -*-jar-with-dependencies.jar ${ STAGEDIR } ${ JAVAJARDIR } /${ PORTNAME } -${ PORTVERSION } -jar-with-dependencies.jar
. i n c l u d e < b s d . p o r t . m k >