pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/databases/elasticsearch



Module Name:    pkgsrc
Committed By:   fhajny
Date:           Sun May 20 12:53:02 UTC 2018

Modified Files:
        pkgsrc/databases/elasticsearch: Makefile distinfo
Added Files:
        pkgsrc/databases/elasticsearch/patches: patch-jna_build.xml

Log Message:
databases/elasticsearch: Skip unneeded API check, avoid GNU grep dep.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 pkgsrc/databases/elasticsearch/Makefile
cvs rdiff -u -r1.45 -r1.46 pkgsrc/databases/elasticsearch/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/databases/elasticsearch/patches/patch-jna_build.xml

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/databases/elasticsearch/Makefile
diff -u pkgsrc/databases/elasticsearch/Makefile:1.44 pkgsrc/databases/elasticsearch/Makefile:1.45
--- pkgsrc/databases/elasticsearch/Makefile:1.44        Wed Apr 18 11:27:21 2018
+++ pkgsrc/databases/elasticsearch/Makefile     Sun May 20 12:53:01 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.44 2018/04/18 11:27:21 fhajny Exp $
+# $NetBSD: Makefile,v 1.45 2018/05/20 12:53:01 fhajny Exp $
 
 DISTNAME=      elasticsearch-6.2.4
 CATEGORIES=    textproc
@@ -19,7 +19,7 @@ BUILD_DEPENDS+=       apache-ant-[0-9]*:../../
 USE_LANGUAGES= c c++
 USE_JAVA=      run
 USE_JAVA2=     8
-USE_TOOLS+=    bash:run gmake grep pax pkg-config
+USE_TOOLS+=    bash:run gmake pax pkg-config
 
 PKG_SYSCONFSUBDIR=     elasticsearch
 EGDIR=                 ${PREFIX}/share/examples/elasticsearch
@@ -70,11 +70,12 @@ SUBST_VARS.paths=   PKG_JAVA_HOME PKG_SYSC
 
 post-extract:
        ${RM} ${WRKSRC}/lib/${JNA}.jar
+       ${MV} ${WRKDIR}/${JNA} ${WRKSRC}/jna
 
 do-build:
        # Override silly SunOS et al. assumptions.
-       cd ${WRKDIR}/${JNA} && ${SETENV} ${MAKE_ENV} ant -Ddynlink.native=true -Dgrep=grep -Dmake.PATH=PATH=${PATH:Q} -Dmake=make native
-       cd ${WRKDIR}/${JNA}/build/classes && ${SETENV} ${MAKE_ENV} jar cf ${WRKSRC}/lib/${JNA}.jar com/
+       cd ${WRKSRC}/jna && ${SETENV} ${MAKE_ENV} ant -Ddynlink.native=true -Dgrep=grep -Dmake.PATH=PATH=${PATH:Q} -Dmake=make native
+       cd ${WRKSRC}/jna/build/classes && ${SETENV} ${MAKE_ENV} jar cf ${WRKSRC}/lib/${JNA}.jar com/
 
 do-install:
 .for f in ${CONFS}

Index: pkgsrc/databases/elasticsearch/distinfo
diff -u pkgsrc/databases/elasticsearch/distinfo:1.45 pkgsrc/databases/elasticsearch/distinfo:1.46
--- pkgsrc/databases/elasticsearch/distinfo:1.45        Wed Apr 18 11:27:21 2018
+++ pkgsrc/databases/elasticsearch/distinfo     Sun May 20 12:53:01 2018
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.45 2018/04/18 11:27:21 fhajny Exp $
+$NetBSD: distinfo,v 1.46 2018/05/20 12:53:01 fhajny Exp $
 
 SHA1 (elasticsearch-6.2.4.tar.gz) = 8db5931278fd7a8687659ebcfaeab0d0f87f7d22
 RMD160 (elasticsearch-6.2.4.tar.gz) = a28f3c240a5d8b4e7eec72b8d72e9362820df1a5
@@ -10,3 +10,4 @@ SHA512 (jna-4.5.1.tar.gz) = 057e185011dc
 Size (jna-4.5.1.tar.gz) = 73024055 bytes
 SHA1 (patch-bin_elasticsearch-env) = 7d8f71c6c1a99168cc4a7322e054ddc8fe94b68e
 SHA1 (patch-config_elasticsearch.yml) = f66dad65dec48a45a4d52b685d6e3ab29de62cf2
+SHA1 (patch-jna_build.xml) = d7c743ed8056109b9101c6550d9a4df7a7b05b58

Added files:

Index: pkgsrc/databases/elasticsearch/patches/patch-jna_build.xml
diff -u /dev/null pkgsrc/databases/elasticsearch/patches/patch-jna_build.xml:1.1
--- /dev/null   Sun May 20 12:53:02 2018
+++ pkgsrc/databases/elasticsearch/patches/patch-jna_build.xml  Sun May 20 12:53:01 2018
@@ -0,0 +1,24 @@
+$NetBSD: patch-jna_build.xml,v 1.1 2018/05/20 12:53:01 fhajny Exp $
+
+Skip API check, we build from source anyway. Removes silly dependency on ggrep.
+
+--- jna/build.xml.orig 2017-12-27 19:27:16.000000000 +0000
++++ jna/build.xml
+@@ -682,7 +682,7 @@ osname=macosx;processor=x86;processor=x8
+     </condition>
+     <!-- args are based on GNU grep, other versions may differ -->
+     <apply dir="${build.native}" executable="${grep}" parallel="true"
+-           failonerror="${grep.required}" relative="true" output="${md5.file}">
++           relative="true" output="${md5.file}">
+       <arg value="-A"/>
+       <arg value="1"/>
+       <arg value="JNIEXPORT"/>
+@@ -790,7 +790,7 @@ osname=macosx;processor=x86;processor=x8
+                    file="${rsrc}" byline="true"/>
+   </target>
+ 
+-  <target name="native" depends="-enable-native,-setup,javah,-native-api-check,rsrc" unless="-native"
++  <target name="native" depends="-enable-native,-setup,javah,rsrc" unless="-native"
+           description="Build native libraries.  Use 'ant -DCC=xxx' to build using a compiler other than gcc">
+     <property name="comment" value="# auto-generated by ant"/>
+     <replaceregexp match="^JNA_JNI_VERSION=.*"



Home | Main Index | Thread Index | Old Index