1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 DESCRIPTION="Offline Windows NT Password & Registry Editor"
9 HOMEPAGE="http://pogostick.net/~pnh/ntpasswd/"
10 SRC_URI="http://pogostick.net/~pnh/ntpasswd/${PN}-source-${PV}.zip"
12 LICENSE="GPL-2 LGPL-2.1"
14 KEYWORDS="amd64 ~ppc ~x86"
15 IUSE="libressl static"
17 RDEPEND="!libressl? ( dev-libs/openssl:0= )
18 libressl? ( dev-libs/libressl:0= )"
21 static? ( dev-libs/openssl:0[static-libs] )"
32 sed -i -e '/-o/s:$(CC):$(CC) $(LDFLAGS):' Makefile || die
34 if ! use static ; then
35 sed -i -e "/^all:/s/ \(chntpw\|reged\).static//g" Makefile || die
44 CFLAGS="${CFLAGS} -DUSEOPENSSL -Wall" \
50 dobin chntpw cpnt reged
53 dobin {chntpw,reged}.static