git: e14127a9ba58 - main - devel/rubygem-oj: Simplify Makefile

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 12 Feb 2023 18:46:34 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e14127a9ba58599cf3344fb69642d2ff5ea09df3

commit e14127a9ba58599cf3344fb69642d2ff5ea09df3
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-02-12 18:36:57 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-02-12 18:41:47 +0000

    devel/rubygem-oj: Simplify Makefile
    
    - Use GEM_LIB_DIR
    - Use single INSTALL_DATA
---
 devel/rubygem-oj/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/devel/rubygem-oj/Makefile b/devel/rubygem-oj/Makefile
index 367164535c29..795630834218 100644
--- a/devel/rubygem-oj/Makefile
+++ b/devel/rubygem-oj/Makefile
@@ -14,9 +14,9 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 USES=		gem
 
 # TODO: find a better way to do this
-# Copy all header file, as it is required by rubygem-oj-introspect
+# Install all header files, some of them are required by devel/rubygem-oj-introspect
 post-install:
-	${INSTALL} -d ${STAGEDIR}${PREFIX}/${GEMS_DIR}/${PORTNAME}-${PORTVERSION}/ext/oj
-	cd ${WRKSRC}/ext/oj && ${FIND} * -name "*.h" -type f -exec ${INSTALL_DATA} {} "${STAGEDIR}${PREFIX}/${GEMS_DIR}/${PORTNAME}-${PORTVERSION}/ext/oj/{}" \;
+	${MKDIR} ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/ext/oj
+	${INSTALL_DATA} ${WRKSRC}/ext/oj/*.h ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/ext/oj/
 
 .include <bsd.port.mk>