diff --git a/devel/Makefile b/devel/Makefile --- a/devel/Makefile +++ b/devel/Makefile @@ -155,6 +155,7 @@ SUBDIR += aifad SUBDIR += aixlog SUBDIR += ald + SUBDIR += alire SUBDIR += allegro SUBDIR += allegro5 SUBDIR += amber diff --git a/devel/alire/Makefile b/devel/alire/Makefile new file mode 100644 --- /dev/null +++ b/devel/alire/Makefile @@ -0,0 +1,68 @@ +PORTNAME= alire +DISTVERSION= 1.2.2 +CATEGORIES= devel +MASTER_SITES= https://github.com/alire-project/alire/releases/download/v${PORTVERSION}/ +DISTNAME= alr-${PORTVERSION}-full-sources + +MAINTAINER= agh@riseup.net +COMMENT= Ada LIbrary REpository (ALIRE) management tool, alr +WWW= https://alire.ada.dev/ + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= gprbuild>0:devel/gprbuild + +USES= ada:12,run zip +USE_GCC= yes:build + +_GPR_ARGS= -j${MAKE_JOBS_NUMBER} -p -XALIRE_OS=freebsd + +WRKSRC= ${WRKDIR}/alr-${PORTVERSION} + +OPTIONS_DEFINE= BASH DEBUG DESKTOP DOCS +OPTIONS_DEFAULT= DESKTOP +OPTIONS_SUB= yes + +BASH_DESC= Install Bash shell auto completion extenstion for alr +DESKTOP_DESC= Install deskop entry +DOCS_DESC= Install Design and Development documentation + +.include + +.if ${PORT_OPTIONS:MDEBUG} +WITH_DEBUG= yes +.endif +.if empty(PORT_OPTIONS:MDEBUG) +_GPR_ARGS+= -XALIRE_BUILD_MODE=release +.endif + +do-build: + (cd ${WRKSRC} && \ + ${SETENV} ${MAKE_ENV} gprbuild ${_GPR_ARGS} -P alr_env) + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/bin/alr \ + ${STAGEDIR}${PREFIX}/bin + +do-install-BASH-on: + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d + ${INSTALL_DATA} ${WRKSRC}/scripts/alr-completion.bash \ + ${STAGEDIR}${PREFIX}/etc/bash_completion.d/ + +do-install-DESKTOP-on: + ${MKDIR} ${STAGEDIR}${PREFIX}/share/applications + ${INSTALL_DATA} ${WRKSRC}/resources/alr.desktop \ + ${STAGEDIR}${PREFIX}/share/applications + + ${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps + ${INSTALL_DATA} ${WRKSRC}/resources/alr.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps + +do-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC}/doc && \ + ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) + +.include diff --git a/devel/alire/distinfo b/devel/alire/distinfo new file mode 100644 --- /dev/null +++ b/devel/alire/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1691804403 +SHA256 (alr-1.2.2-full-sources.zip) = 8a9efd65a3da4e22ffaf5b146dba8dc125cf4ea26d482a25bcaac85d0d2764d1 +SIZE (alr-1.2.2-full-sources.zip) = 2267709 diff --git a/devel/alire/pkg-descr b/devel/alire/pkg-descr new file mode 100644 --- /dev/null +++ b/devel/alire/pkg-descr @@ -0,0 +1,15 @@ +ALIRE: Ada LIbrary REpository. + +A catalog of ready-to-use Ada libraries plus a command-line tool (alr) to +obtain, build, and use with your own projects. + +alr is designed to configure, and deploy custom isolated userspace +environments, known as a project or workspace. Environments will contain +all the state, and dependencies it requires for operation. + +Properties and dependencies of projects are managed through a TOML file +(alire.toml, found at the root of Alire workspaces). This file exists locally +for working copies of projects, and the Alire community index stores the files +corresponding to its projects. + +You can check the environment alr is using with 'alr printenv' diff --git a/devel/alire/pkg-plist b/devel/alire/pkg-plist new file mode 100644 --- /dev/null +++ b/devel/alire/pkg-plist @@ -0,0 +1,21 @@ +bin/alr +%%BASH%%etc/bash_completion.d/alr-completion.bash +%%DESKTOP%%share/applications/alr.desktop +%%DOCS%%%%DOCSDIR%%/2018-03.alr-draft.pdf +%%DOCS%%%%DOCSDIR%%/AEPs/aep-0001.md +%%DOCS%%%%DOCSDIR%%/AEPs/aep-0002.md +%%DOCS%%%%DOCSDIR%%/alr-logo-black-white.svg +%%DOCS%%%%DOCSDIR%%/alr-logo-sq.png +%%DOCS%%%%DOCSDIR%%/alr-logo-white.svg +%%DOCS%%%%DOCSDIR%%/alr-logo.svg +%%DOCS%%%%DOCSDIR%%/alr-logo.svg.png +%%DOCS%%%%DOCSDIR%%/catalog-format-spec.md +%%DOCS%%%%DOCSDIR%%/classes.graphml +%%DOCS%%%%DOCSDIR%%/configuration.md +%%DOCS%%%%DOCSDIR%%/getting-started.md +%%DOCS%%%%DOCSDIR%%/introduction.md +%%DOCS%%%%DOCSDIR%%/policies.md +%%DOCS%%%%DOCSDIR%%/publishing.md +%%DOCS%%%%DOCSDIR%%/toolchains.md +%%DOCS%%%%DOCSDIR%%/user-changes.md +%%DESKTOP%%share/pixmaps/alr.png