git: 0983bbffe275 - main - devel/rubygem-oj: Fix build

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 18 Jan 2023 15:34:34 UTC
The branch main has been updated by bofh:

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

commit 0983bbffe275d18b7b7c576817f3eb57e2504bfe
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-01-18 15:28:49 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-01-18 15:32:49 +0000

    devel/rubygem-oj: Fix build
    
    Currently the header files are not included although there is a
    post-install step. However there is a missing line where we need to
    create the directories.
    
    This fixes the builds of gitlab-ce.
    
    PR:             269020
    Reported by:    lysfjord.daniel@smokepit.net
    Approved by:    portmgr (just-fix-it)
    Sponsored by:   Bounce Experts
---
 devel/rubygem-oj/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/devel/rubygem-oj/Makefile b/devel/rubygem-oj/Makefile
index 8bdf67403bc5..374e6a43edc7 100644
--- a/devel/rubygem-oj/Makefile
+++ b/devel/rubygem-oj/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	oj
 PORTVERSION=	3.13.23
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel rubygems
 MASTER_SITES=	RG
 
@@ -16,7 +16,7 @@ USES=		gem
 # TODO: find a better way to do this
 # Copy all header file, as it is required by rubygem-oj-introspect
 post-install:
+	${INSTALL_DATA} -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/{}" \;
 
-
 .include <bsd.port.mk>