From a3f86d0b70ec751afadbdf48b9959a4e203755a2 Mon Sep 17 00:00:00 2001
From: Tobias Kortkamp <tobik@FreeBSD.org>
Date: Mon, 10 Jun 2019 10:57:04 +0000
Subject: devel/pijul: Use CARGO_INSTALL_PATH and remove some cruft

---
 devel/pijul/Makefile | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/devel/pijul/Makefile b/devel/pijul/Makefile
index 868ee01def7a..1661a2fab8b4 100644
--- a/devel/pijul/Makefile
+++ b/devel/pijul/Makefile
@@ -291,19 +291,10 @@ CARGO_CRATES=	MacTypes-sys-2.1.0 \
 		ws2_32-sys-0.2.1 \
 		xattr-0.2.2 \
 		yasna-0.1.3
-CARGO_CARGOLOCK=	${WRKSRC:H}/Cargo.lock
 
-PLIST_FILES=	bin/pijul
-WRKSRC_SUBDIR=	pijul
+CARGO_INSTALL_PATH=	pijul
 
-# We are using pijul/Cargo.toml for all phases and profiles are ignored
-# if specified in non root packages.  cargo.mk has no way to override
-# the Cargo.toml used for each phase, so append the release profile
-# to the root Cargo.toml.
-post-configure:
-	@${ECHO_CMD} "[profile.release]" >> ${WRKSRC:H}/Cargo.toml
-	@${ECHO_CMD} "opt-level = 2" >> ${WRKSRC:H}/Cargo.toml
-	@${ECHO_CMD} "debug = false" >> ${WRKSRC:H}/Cargo.toml
+PLIST_FILES=	bin/pijul
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pijul
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0