File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 33
44EAPI=8
55
6- inherit cmake git-r3
6+ inherit cmake git-r3 java-pkg-opt-2
77
88DESCRIPTION=" Cross-platform library for building Telegram clients"
99HOMEPAGE=" https://github.com/tdlib/td"
@@ -67,6 +67,7 @@ src_prepare() {
6767 # fi
6868 # # user reported that for now, tests segfaults on glibc and musl
6969
70+ java-pkg-opt-2_src_prepare
7071 cmake_src_prepare
7172}
7273
@@ -86,6 +87,12 @@ src_configure() {
8687 # -DEMSCRIPTEN=$(usex javascript ON OFF) # Somehow makes GCC to stop seeing pthreads.h
8788 )
8889
90+ if use java; then
91+ export JAVA_HOME=" $( java-config -g JAVA_HOME) "
92+ export JAVA_AWT_INCLUDE_PATH=" ${JAVA_HOME} /include"
93+ export JAVA_JVM_LIBRARY=" ${JAVA_HOME} /lib/server/libjvm.so"
94+ fi
95+
8996 cmake_src_configure
9097
9198 if use low-ram; then
Original file line number Diff line number Diff line change 33
44EAPI=8
55
6- inherit cmake git-r3
6+ inherit cmake git-r3 java-pkg-opt-2
77
88DESCRIPTION=" Cross-platform library for building Telegram clients"
99HOMEPAGE=" https://github.com/tdlib/td"
@@ -67,6 +67,7 @@ src_prepare() {
6767 # fi
6868 # # user reported that for now, tests segfaults on glibc and musl
6969
70+ java-pkg-opt-2_src_prepare
7071 cmake_src_prepare
7172}
7273
@@ -86,6 +87,12 @@ src_configure() {
8687 # -DEMSCRIPTEN=$(usex javascript ON OFF) # Somehow makes GCC to stop seeing pthreads.h
8788 )
8889
90+ if use java; then
91+ export JAVA_HOME=" $( java-config -g JAVA_HOME) "
92+ export JAVA_AWT_INCLUDE_PATH=" ${JAVA_HOME} /include"
93+ export JAVA_JVM_LIBRARY=" ${JAVA_HOME} /lib/server/libjvm.so"
94+ fi
95+
8996 cmake_src_configure
9097
9198 if use low-ram; then
You can’t perform that action at this time.
0 commit comments