head	1.6;
access;
symbols
	pkgsrc-2024Q4:1.5.0.2
	pkgsrc-2024Q4-base:1.5
	pkgsrc-2024Q3:1.4.0.14
	pkgsrc-2024Q3-base:1.4
	pkgsrc-2024Q2:1.4.0.12
	pkgsrc-2024Q2-base:1.4
	pkgsrc-2024Q1:1.4.0.10
	pkgsrc-2024Q1-base:1.4
	pkgsrc-2023Q4:1.4.0.8
	pkgsrc-2023Q4-base:1.4
	pkgsrc-2023Q3:1.4.0.6
	pkgsrc-2023Q3-base:1.4
	pkgsrc-2023Q2:1.4.0.4
	pkgsrc-2023Q2-base:1.4
	pkgsrc-2023Q1:1.4.0.2
	pkgsrc-2023Q1-base:1.4
	pkgsrc-2022Q4:1.3.0.2
	pkgsrc-2022Q4-base:1.3;
locks; strict;
comment	@# @;


1.6
date	2025.02.12.15.31.03;	author wiz;	state dead;
branches;
next	1.5;
commitid	pTdtsc70J3ub4cJF;

1.5
date	2024.11.30.20.12.24;	author wiz;	state Exp;
branches;
next	1.4;
commitid	aWtzQJO4v9Q90IzF;

1.4
date	2023.03.03.10.10.38;	author wiz;	state Exp;
branches;
next	1.3;
commitid	Y50OVazOp9odbFfE;

1.3
date	2022.11.14.17.48.14;	author nikita;	state Exp;
branches;
next	1.2;
commitid	aAoixmlBbPXvdH1E;

1.2
date	2022.11.10.14.23.53;	author nikita;	state Exp;
branches;
next	1.1;
commitid	2ILmKqYuXtIida1E;

1.1
date	2022.11.10.12.24.08;	author nikita;	state Exp;
branches;
next	;
commitid	AGi61kz9MGtDx91E;


desc
@@


1.6
log
@hex: remove

This has been moved to wip/hex because it needs some overhaul
@
text
@# $NetBSD: Makefile,v 1.5 2024/11/30 20:12:24 wiz Exp $

DISTNAME=	hex-2.1.1
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_GITHUB:=hexpm/}
GITHUB_PROJECT=	hex
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/hexpm/hex/
COMMENT=	Package manager for the Erlang VM
LICENSE=	apache-2.0

ELIXIR_APP_NAME=	hex
# NOTE: this seems to download files over the network
# TODO: fix!
MIX_TARGET=		local.hex --force

.include "../../lang/elixir/mix.mk"
.include "../../mk/bsd.pkg.mk"
@


1.5
log
@hex: update to 2.1.1.

NOTE: this package seems to download files during the build
If you know elixir/mix please fix this!

## v2.1.1 (2024-05-22)

### Bug fixes

* Fix overriding Hex packages from non Hex dependencies

## v2.1.0 (2024-05-21)

### Enhancements

* Improve solver error message when collecting conflicting requirements from multiple places. Fixes the "empty" versions error. This is done by including path and git parents of hex packages in the solver.
* Add "(CI)" to `user-agent` HTTP header if environment variable `CI` is set
* Improve message for authentication errors
* Set exit code 1 on `mix hex.organization auth` errors
* Add `--sort` flag `mix hex.outdated`
* Improve error message when trying to publish existing package with permissions
* Consider ex_doc `:output` option when publishing documentation
* Warn on unknown dependency options

### Bug fixes

* Do not close registry server in post_converge. Fixes the "the table identifier does not refer to an existing ETS table" error.
* Revert Mix changes on Hex application stop
* Fix passing requests from umbrella apps to solver
* Handle empty package name in `mix hex.info`

## v2.0.6 (2023-02-06)

### Bug fixes

* Fix application startup when there are configured organizations
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2023/03/03 10:10:38 wiz Exp $
@


1.4
log
@hex: update to 2.0.5.

Fix build. Make PKGNAME match directory name.

## v2.0.5 (2023-02-06)

### Bug fixes

* Fix HTTP authentication for repositories added before v2.0.3

## v2.0.4 (2023-02-02)

### Bug fixes

* Fix trust lookup for organizations

## v2.0.3 (2023-02-01)

### Enhancements

* Remove dependency on `ssh` application
* Add `trusted_mirror_url` config and `HEX_TRUSTED_MIRROR_URL` environment variable. When setting either of these the repository authentication key will be included in requests. `mirror_url` config and `HEX_MIRROR_URL` have changed to no longer include the authentication key in requests. This is to ensure secrets are not sent to repository mirrors that are not trusted.

## v2.0.2 (2023-01-30)

### Enhancements

* Remove `hex.install` task

### Bug fixes

* Fixes for upcoming Elixir 1.15.0 release

## v2.0.1 (2023-01-09)

### Enhancements

* Raise when parsing intersected ranges
* Skip unselected optionals during solving

### Bug fixes

* Fix converging of requirements from different sources
* Fix organization owner prompt during publish
* Do not override locked deps
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2022/11/14 17:48:14 nikita Exp $
d3 1
a3 1
DISTNAME=	hex-2.0.5
d15 2
a16 2
ELIXIR_APP_VERSION=	2.0.6
# does this pull in dependencies over the network?
@


1.3
log
@devel/hex: fix build.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2022/11/10 14:23:53 nikita Exp $
d3 1
a3 3
DISTNAME=	hex-2.0.0
PKGREVISION=	1
PKGNAME=	elixir-${DISTNAME}
d15 1
@


1.2
log
@devel/hex: simplify, use lang/elixir/mix.mk.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2022/11/10 12:24:08 nikita Exp $
d17 2
@


1.1
log
@Import elixir-hex version 2.0.0 as devel/hex.

Hex is package manager for the Erlang VM.

This project currently provides tasks that
integrate with Mix, Elixir's build tool.

See https://hex.pm for more documentation.
@
text
@d1 1
a1 1
# $NetBSD$
d4 1
d16 1
a16 16
DEPENDS+=	elixir>=1.14.0:../../lang/elixir

EBIN_DIR=	${DESTDIR}${PREFIX}/lib/elixir/lib/hex/ebin/

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}
d18 1
@

