Skip to content

Commit

Permalink
www/libnghttp3: Convert REINPLACE_CMD to patch file
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed Aug 8, 2021
1 parent e2e981e commit 72ca033
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion www/libnghttp3/Makefile
Expand Up @@ -24,6 +24,6 @@ GH_TAGNAME= 6858c28
USE_GITHUB= yes

post-patch:
@${REINPLACE_CMD} -e 's|0.1.0-DEV|${PORTVERSION}|' ${WRKSRC}/configure.ac
@${REINPLACE_CMD} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${WRKSRC}/configure.ac

.include <bsd.port.mk>
11 changes: 11 additions & 0 deletions www/libnghttp3/files/patch-configure.ac
@@ -0,0 +1,11 @@
--- configure.ac.orig 2021-07-31 08:26:06 UTC
+++ configure.ac
@@ -23,7 +23,7 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
AC_PREREQ(2.61)
-AC_INIT([nghttp3], [0.1.0-DEV], [t-tujikawa@users.sourceforge.net])
+AC_INIT([nghttp3], [%%PORTVERSION%%], [t-tujikawa@users.sourceforge.net])
AC_CONFIG_AUX_DIR([.])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])

0 comments on commit 72ca033

Please sign in to comment.