pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/hex devel/hex: simplify, use lang/elixir/mix.mk.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/543b5e6a360c
branches:  trunk
changeset: 387928:543b5e6a360c
user:      nikita <nikita%pkgsrc.org@localhost>
date:      Thu Nov 10 14:23:53 2022 +0000

description:
devel/hex: simplify, use lang/elixir/mix.mk.

diffstat:

 devel/hex/Makefile |  21 ++----------
 devel/hex/PLIST    |  85 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 88 insertions(+), 18 deletions(-)

diffs (132 lines):

diff -r 50ead220a1b5 -r 543b5e6a360c devel/hex/Makefile
--- a/devel/hex/Makefile        Thu Nov 10 14:23:15 2022 +0000
+++ b/devel/hex/Makefile        Thu Nov 10 14:23:53 2022 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2022/11/10 12:24:08 nikita Exp $
+# $NetBSD: Makefile,v 1.2 2022/11/10 14:23:53 nikita Exp $
 
 DISTNAME=      hex-2.0.0
+PKGREVISION=   1
 PKGNAME=       elixir-${DISTNAME}
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=hexpm/}
@@ -12,21 +13,7 @@
 COMMENT=       Package manager for the Erlang VM
 LICENSE=       apache-2.0
 
-DEPENDS+=      elixir>=1.14.0:../../lang/elixir
-
-EBIN_DIR=      ${DESTDIR}${PREFIX}/lib/elixir/lib/hex/ebin/
+ELIXIR_APP_NAME=       hex
 
-ALL_ENV+=      MIX_ENV="prod"
-# FIX THIS: warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8.
-# Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
-ALL_ENV+=      LANG="en_US.UTF-8"
-ALL_ENV+=      LC_ALL="en_US.UTF-8"
-
-do-build:
-       ${RUN} cd ${WRKSRC} && ${SETENV} ${ALL_ENV} ${PREFIX}/bin/mix local.hex --force
-
-do-install:
-       ${MKDIR} ${EBIN_DIR}
-       ${INSTALL_DATA} ${WRKDIR}/.home/.mix/archives/${DISTNAME}/${DISTNAME}/ebin/* ${EBIN_DIR}
-
+.include "../../lang/elixir/mix.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 50ead220a1b5 -r 543b5e6a360c devel/hex/PLIST
--- a/devel/hex/PLIST   Thu Nov 10 14:23:15 2022 +0000
+++ b/devel/hex/PLIST   Thu Nov 10 14:23:53 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2022/11/10 12:24:08 nikita Exp $
+@comment $NetBSD: PLIST,v 1.2 2022/11/10 14:23:53 nikita Exp $
 lib/elixir/lib/hex/ebin/Elixir.Hex.API.Auth.beam
 lib/elixir/lib/hex/ebin/Elixir.Hex.API.Key.Organization.beam
 lib/elixir/lib/hex/ebin/Elixir.Hex.API.Key.beam
@@ -116,3 +116,86 @@
 lib/elixir/lib/hex/ebin/mix_hex_repo.beam
 lib/elixir/lib/hex/ebin/mix_hex_tarball.beam
 lib/elixir/lib/hex/ebin/mix_safe_erl_term.beam
+lib/elixir/lib/hex/lib/hex.ex
+lib/elixir/lib/hex/lib/hex/api.ex
+lib/elixir/lib/hex/lib/hex/api/auth.ex
+lib/elixir/lib/hex/lib/hex/api/key.ex
+lib/elixir/lib/hex/lib/hex/api/package.ex
+lib/elixir/lib/hex/lib/hex/api/release.ex
+lib/elixir/lib/hex/lib/hex/api/release_docs.ex
+lib/elixir/lib/hex/lib/hex/api/short_url.ex
+lib/elixir/lib/hex/lib/hex/api/user.ex
+lib/elixir/lib/hex/lib/hex/application.ex
+lib/elixir/lib/hex/lib/hex/config.ex
+lib/elixir/lib/hex/lib/hex/crypto.ex
+lib/elixir/lib/hex/lib/hex/crypto/aes_cbc_hmac_sha2.ex
+lib/elixir/lib/hex/lib/hex/crypto/aes_gcm.ex
+lib/elixir/lib/hex/lib/hex/crypto/content_encryptor.ex
+lib/elixir/lib/hex/lib/hex/crypto/encryption.ex
+lib/elixir/lib/hex/lib/hex/crypto/key_manager.ex
+lib/elixir/lib/hex/lib/hex/crypto/pbes2_hmac_sha2.ex
+lib/elixir/lib/hex/lib/hex/crypto/pkcs5.ex
+lib/elixir/lib/hex/lib/hex/crypto/public_key.ex
+lib/elixir/lib/hex/lib/hex/dev.ex
+lib/elixir/lib/hex/lib/hex/http.ex
+lib/elixir/lib/hex/lib/hex/http/ca-bundle.crt
+lib/elixir/lib/hex/lib/hex/http/certs.ex
+lib/elixir/lib/hex/lib/hex/http/ssl.ex
+lib/elixir/lib/hex/lib/hex/http/verify_hostname.ex
+lib/elixir/lib/hex/lib/hex/mix.ex
+lib/elixir/lib/hex/lib/hex/netrc.ex
+lib/elixir/lib/hex/lib/hex/netrc/cache.ex
+lib/elixir/lib/hex/lib/hex/netrc/parser.ex
+lib/elixir/lib/hex/lib/hex/package.ex
+lib/elixir/lib/hex/lib/hex/parallel.ex
+lib/elixir/lib/hex/lib/hex/registry/server.ex
+lib/elixir/lib/hex/lib/hex/remote_converger.ex
+lib/elixir/lib/hex/lib/hex/repo.ex
+lib/elixir/lib/hex/lib/hex/scm.ex
+lib/elixir/lib/hex/lib/hex/server.ex
+lib/elixir/lib/hex/lib/hex/shell.ex
+lib/elixir/lib/hex/lib/hex/shell/process.ex
+lib/elixir/lib/hex/lib/hex/solver.ex
+lib/elixir/lib/hex/lib/hex/solver/assignment.ex
+lib/elixir/lib/hex/lib/hex/solver/constraint.ex
+lib/elixir/lib/hex/lib/hex/solver/constraints/empty.ex
+lib/elixir/lib/hex/lib/hex/solver/constraints/impl.ex
+lib/elixir/lib/hex/lib/hex/solver/constraints/range.ex
+lib/elixir/lib/hex/lib/hex/solver/constraints/union.ex
+lib/elixir/lib/hex/lib/hex/solver/constraints/util.ex
+lib/elixir/lib/hex/lib/hex/solver/constraints/version.ex
+lib/elixir/lib/hex/lib/hex/solver/failure.ex
+lib/elixir/lib/hex/lib/hex/solver/incompatibility.ex
+lib/elixir/lib/hex/lib/hex/solver/package_lister.ex
+lib/elixir/lib/hex/lib/hex/solver/package_range.ex
+lib/elixir/lib/hex/lib/hex/solver/partial_solution.ex
+lib/elixir/lib/hex/lib/hex/solver/registry.ex
+lib/elixir/lib/hex/lib/hex/solver/requirement.ex
+lib/elixir/lib/hex/lib/hex/solver/solver.ex
+lib/elixir/lib/hex/lib/hex/solver/term.ex
+lib/elixir/lib/hex/lib/hex/solver/util.ex
+lib/elixir/lib/hex/lib/hex/sponsor.ex
+lib/elixir/lib/hex/lib/hex/state.ex
+lib/elixir/lib/hex/lib/hex/stdlib.ex
+lib/elixir/lib/hex/lib/hex/tar.ex
+lib/elixir/lib/hex/lib/hex/update_checker.ex
+lib/elixir/lib/hex/lib/hex/utils.ex
+lib/elixir/lib/hex/lib/mix/task_description.ex
+lib/elixir/lib/hex/lib/mix/tasks/hex.audit.ex
+lib/elixir/lib/hex/lib/mix/tasks/hex.build.ex
+lib/elixir/lib/hex/lib/mix/tasks/hex.config.ex
+lib/elixir/lib/hex/lib/mix/tasks/hex.docs.ex
+lib/elixir/lib/hex/lib/mix/tasks/hex.ex
+lib/elixir/lib/hex/lib/mix/tasks/hex.info.ex
+lib/elixir/lib/hex/lib/mix/tasks/hex.install.ex
+lib/elixir/lib/hex/lib/mix/tasks/hex.organization.ex
+lib/elixir/lib/hex/lib/mix/tasks/hex.outdated.ex
+lib/elixir/lib/hex/lib/mix/tasks/hex.owner.ex
+lib/elixir/lib/hex/lib/mix/tasks/hex.package.ex
+lib/elixir/lib/hex/lib/mix/tasks/hex.publish.ex
+lib/elixir/lib/hex/lib/mix/tasks/hex.registry.ex
+lib/elixir/lib/hex/lib/mix/tasks/hex.repo.ex
+lib/elixir/lib/hex/lib/mix/tasks/hex.retire.ex
+lib/elixir/lib/hex/lib/mix/tasks/hex.search.ex
+lib/elixir/lib/hex/lib/mix/tasks/hex.sponsor.ex
+lib/elixir/lib/hex/lib/mix/tasks/hex.user.ex



Home | Main Index | Thread Index | Old Index