diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2022-12-30 11:49:45 -0600 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2022-12-30 11:54:39 -0600 |
commit | 8231864a3b0376f9df37cc3904c4e217efc6110d (patch) | |
tree | 1527743df58dab8dec2dc27426e051818ed96898 /math/octave-forge-coder | |
parent | databases/influxdb2-cli: update to 2.6.1 (diff) |
Mk/**octave.mk: Convert to USES=octave
As part of the improvements of USES infrastructure Mk/bsd.octave.mk has
been converted to Mk/Uses/octave.mk. This also declutters some old
stuffs in the octave-* ports and makes it simpler to add more
octave-forge ports easily.
While I am here make all the ports portclippy/portfmt compliant. And use
USES macros whenever possible.
Reviewed by: portmgr
Approved by: tcberner
Differential Revision: https://reviews.freebsd.org/D37887
Diffstat (limited to 'math/octave-forge-coder')
-rw-r--r-- | math/octave-forge-coder/Makefile | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/math/octave-forge-coder/Makefile b/math/octave-forge-coder/Makefile index 21aa004127a7..0d5ef2ce693a 100644 --- a/math/octave-forge-coder/Makefile +++ b/math/octave-forge-coder/Makefile @@ -8,27 +8,20 @@ COMMENT= Octave-forge package ${OCTAVE_PKGNAME} WWW= https://packages.octave.org/ LICENSE= GPLv3 -LICENSE_FILE= ${WRKDIR}/${OCTSRC}/COPYING +LICENSE_FILE= ${WRKDIR}/${OCTAVE_SRC}/COPYING +USES= octave USE_GITHUB= yes GH_ACCOUNT= shsajjadi GH_PROJECT= OctaveCoder -# OCTSRC is the name of the directory of the package. -# It is usually ${OCTAVE_PKGNAME} or ${DISTNAME}. -OCTSRC= ${GH_PROJECT}-coder-${DISTVERSION} +OCTAVE_SRC= ${GH_PROJECT}-coder-${DISTVERSION} -WRKSRC= ${WRKDIR}/${OCTSRC} - -.include "${.CURDIR}/../../Mk/bsd.octave.mk" +WRKSRC= ${WRKDIR}/${OCTAVE_SRC} do-build: cd ${WRKSRC} && \ octave-cli -W -H -q --no-site-file --eval "pre_install" && \ ${RM} pre_install.m -post-build: - ${RM} ${WRKSRC}/Makefile ${WRKSRC}/configure - cd ${WRKDIR} && ${TAR} cfz ${OCTAVE_DISTNAME}.tar.gz ${OCTSRC} - .include <bsd.port.mk> |