Lines 1-8
Link Here
|
1 |
PORTNAME= orpie |
1 |
PORTNAME= orpie |
2 |
PORTVERSION= 1.5.2 |
2 |
PORTVERSION= 1.6.1 |
3 |
PORTREVISION= 9 |
3 |
DISTVERSIONPREFIX= release- |
4 |
CATEGORIES+= math |
4 |
CATEGORIES+= math |
5 |
MASTER_SITES= https://github.com/pelzlpj/orpie/releases/download/release-${PORTVERSION}/ |
|
|
6 |
|
5 |
|
7 |
MAINTAINER= mt-bugs@markoturk.info |
6 |
MAINTAINER= mt-bugs@markoturk.info |
8 |
COMMENT= Fullscreen RPN calculator for the console |
7 |
COMMENT= Fullscreen RPN calculator for the console |
Lines 13-33
LICENSE= GPLv2
Link Here
|
13 |
NOT_FOR_ARCHS= armv6 armv7 |
12 |
NOT_FOR_ARCHS= armv6 armv7 |
14 |
NOT_FOR_ARCHS_REASON= architectures with double-word alignment for doubles are not supported |
13 |
NOT_FOR_ARCHS_REASON= architectures with double-word alignment for doubles are not supported |
15 |
|
14 |
|
16 |
BUILD_DEPENDS= ${LOCALBASE}/${OCAML_SITELIBDIR}/num/META:math/ocaml-num |
15 |
BUILD_DEPENDS= ocaml-camlp5>=0:devel/ocaml-camlp5 \ |
|
|
16 |
${LOCALBASE}/${OCAML_SITELIBDIR}/camlp-streams/META:devel/ocaml-camlp-streams \ |
17 |
${LOCALBASE}/${OCAML_SITELIBDIR}/curses/META:devel/ocaml-curses \ |
18 |
${LOCALBASE}/${OCAML_SITELIBDIR}/gsl/META:math/ocamlgsl \ |
19 |
${LOCALBASE}/${OCAML_SITELIBDIR}/num/META:math/ocaml-num |
17 |
LIB_DEPENDS= libgsl.so:math/gsl |
20 |
LIB_DEPENDS= libgsl.so:math/gsl |
18 |
|
21 |
|
19 |
USES= gmake ncurses |
22 |
USES= ncurses ocaml:dune |
|
|
23 |
USE_GITHUB= yes |
24 |
GH_ACCOUNT= pelzlpj |
20 |
USE_OCAML= yes |
25 |
USE_OCAML= yes |
21 |
USE_OCAML_CAMLP4=yes |
26 |
#XXX DUNE_DOCSDIR= ${DOCSDIR} |
22 |
GNU_CONFIGURE= yes |
|
|
23 |
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share |
24 |
MAKE_JOBS_UNSAFE= yes |
25 |
|
27 |
|
26 |
PLIST_FILES= bin/orpie bin/orpie-curses-keys etc/orpierc \ |
28 |
PORTDOCS= LICENSE.md README.adoc manual.html manual.pdf |
|
|
29 |
PLIST_FILES= bin/orpie bin/orpie-curses-keys \ |
27 |
share/man/man1/orpie.1.gz share/man/man1/orpie-curses-keys.1.gz \ |
30 |
share/man/man1/orpie.1.gz share/man/man1/orpie-curses-keys.1.gz \ |
28 |
share/man/man5/orpierc.5.gz |
31 |
share/man/man5/orpierc.5.gz |
|
|
32 |
# upstream changed to etc/orpie/orpierc, we stick to the old name (POLA) |
33 |
PLIST_FILES+= "@sample etc/orpierc.sample" |
34 |
|
35 |
OPTIONS_DEFINE= DOCS |
36 |
|
37 |
post-patch: |
38 |
@${REINPLACE_CMD} \ |
39 |
-e 's,#use "topfind",#directory "+unix",' \ |
40 |
-e 's,#require "unix",#load "unix.cma",' \ |
41 |
${WRKSRC}/scripts/compute_prefix |
42 |
@${REINPLACE_CMD} \ |
43 |
-e 's,(libraries,& camlp-streams,' \ |
44 |
${WRKSRC}/src/orpie/dune |
45 |
@${REINPLACE_CMD} \ |
46 |
-e '/^let sysconfdir =/s,"etc/orpie","etc",' \ |
47 |
${WRKSRC}/src/orpie/install.ml.in |
29 |
|
48 |
|
30 |
post-install: |
49 |
post-install: |
|
|
50 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
51 |
@${INSTALL_DATA} ${PORTDOCS:@f@${STAGEDIR}${OCAML_DOCSDIR}/${PORTNAME}/$f@} \ |
52 |
${STAGEDIR}${DOCSDIR} |
53 |
@${RM} ${PORTDOCS:@f@${STAGEDIR}${OCAML_DOCSDIR}/${PORTNAME}/$f@} |
54 |
@${RMDIR} ${STAGEDIR}${OCAML_DOCSDIR}/${PORTNAME} ${STAGEDIR}${OCAML_DOCSDIR} |
55 |
@${RM} -r ${STAGEDIR}${PREFIX}/${OCAML_LIBDIR} |
56 |
@${MV} ${STAGEDIR}${ETCDIR}/orpierc ${STAGEDIR}${PREFIX}/etc/orpierc.sample |
57 |
@${RMDIR} ${STAGEDIR}${ETCDIR} |
31 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* |
58 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* |
32 |
|
59 |
|
33 |
.include <bsd.port.mk> |
60 |
.include <bsd.port.mk> |