Changeset View
Standalone View
databases/arangodb32/Makefile
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
# Created by: Vlad Galu <dev@dudu.ro> | |||||
# $FreeBSD$ | |||||
lifanov: Please make "32" a suffix. | |||||
PORTNAME= arangodb | |||||
DISTVERSIONPREFIX= v | |||||
DISTVERSION= 3.2.5-2 | |||||
CATEGORIES= databases net | |||||
PKGNAMESUFFIX= 32 | |||||
MAINTAINER= dev@dudu.ro | |||||
Done Inline ActionsIf you make "32" a suffix, GH_ACCOUNT, GH_PROJECT, and GH_TAGNAME variables can go away. lifanov: If you make "32" a suffix, GH_ACCOUNT, GH_PROJECT, and GH_TAGNAME variables can go away. | |||||
COMMENT= ArangoDB is a distributed NoSQL database with multiple data models | |||||
LICENSE= APACHE20 | |||||
Done Inline ActionsThe comment needs to be more informative. lifanov: The comment needs to be more informative.
It's implied that this is a FreeBSD port, so the… | |||||
BUILD_DEPENDS= git:devel/git | |||||
Done Inline ActionsI found it strange that this needed git to build, so I tried removing it. Turns out it does not need git at all, so you can remove this. It does, however, need Python 2, you'll have to add python:2.7 to the USES line below. mat: I found it strange that this needed git to build, so I tried removing it. Turns out it does not… | |||||
USES= gmake \ | |||||
ssl \ | |||||
cmake:outsource,noninja | |||||
lifanovUnsubmitted Done Inline ActionsThis list is short enough to go on one line. I tested this and I can confirm that bundled v8 doesn't build with ninja. lifanov: This list is short enough to go on one line. I tested this and I can confirm that bundled v8… | |||||
CMAKE_ARGS= -DUSE_JEMALLOC=off \ | |||||
-DUSE_BACKTRACE=on \ | |||||
Done Inline ActionsWhen using cmake, it us usually better to use the type when setting a variable, it avoids mistakes and typos. Here: -DUSE_JEMALLOC:BOOL=false -DUSE_BACKTRACE:BOOL=true -DBASE_LD_FLAGS:STRING=... mat: When using cmake, it us usually better to use the type when setting a variable, it avoids… | |||||
-DBASE_LD_FLAGS="-L${BUILD_WRKSRC}/3rdParty/V8/v5.7.0.0/x64.release/obj.target/src -L${BUILD_WRKSRC}/3rdParty/V8/v5.7.0.0/x64.release/obj.target/third_party/icu -L${LOCALBASE}/lib -L/usr/lib" | |||||
Done Inline ActionsThis should happen earlier, see Chapter 14. Order of Variables in Port Makefiles. mat: This should happen earlier, see [[ https://www.freebsd.org/doc/en/books/porters… | |||||
USE_GITHUB= yes | |||||
USERS= arangodb | |||||
GROUPS= arangodb | |||||
USE_RC_SUBR= arangod | |||||
Done Inline ActionsTry to fix files before they hit STAGEDIR if you can. Also, these can be combined: ${REINPLACE_CMD} -e 's|/usr/local/var/lib|/var/db|g' ${STAGEDIR}/usr/local/etc/arangodb3/*.conf lifanov: Try to fix files before they hit STAGEDIR if you can. Also, these can be combined:
```… | |||||
post-install: | |||||
${MKDIR} ${STAGEDIR}${PREFIX}/man/man1 ${STAGEDIR}${PREFIX}/man/man8 | |||||
.for f in arangobench.1 arangodump.1 arangoexport.1 arangoimp.1 arangorestore.1 arangosh.1 | |||||
${GZIP_CMD} < ${STAGEDIR}${PREFIX}/share/man/man1/${f} > ${STAGEDIR}${PREFIX}/man/man1/${f}.gz | |||||
${RM} ${STAGEDIR}${PREFIX}/share/man/man1/${f} | |||||
.endfor | |||||
${RMDIR} ${STAGEDIR}${PREFIX}/share/man/man1 | |||||
.for f in arango-dfdb.8 arangod.8 foxx-manager.8 rcarangod.8 | |||||
${GZIP_CMD} < ${STAGEDIR}${PREFIX}/share/man/man8/${f} > ${STAGEDIR}${PREFIX}/man/man8/${f}.gz | |||||
${RM} ${STAGEDIR}${PREFIX}/share/man/man8/${f} | |||||
.endfor | |||||
lifanovUnsubmitted Done Inline ActionsThe ports system already compresses man pages on install, so you should not do this. lifanov: The ports system already compresses man pages on install, so you should not do this. | |||||
${RMDIR} ${STAGEDIR}${PREFIX}/share/man/man8 | |||||
${RMDIR} ${STAGEDIR}${PREFIX}/share/man | |||||
${REINPLACE_CMD} -e 's|/usr/local/var/lib|/var/db|g' ${STAGEDIR}${PREFIX}/etc/arangodb3/*.conf | |||||
${REINPLACE_CMD} -e 's|/usr/local/var/log|/var/log|g' ${STAGEDIR}${PREFIX}/etc/arangodb3/arangod.conf | |||||
${RMDIR} ${STAGEDIR}${PREFIX}/var/lib/arangodb3 | |||||
${RMDIR} ${STAGEDIR}${PREFIX}/var/lib/arangodb3-apps | |||||
${RMDIR} ${STAGEDIR}${PREFIX}/var/lib | |||||
${RMDIR} ${STAGEDIR}${PREFIX}/var/log/arangodb3 | |||||
${RMDIR} ${STAGEDIR}${PREFIX}/var/log | |||||
${RMDIR} ${STAGEDIR}${PREFIX}/var | |||||
.include <bsd.port.mk> |
Please make "32" a suffix.