mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-01 01:21:57 +00:00
Compare commits
11 Commits
w/idea
..
fix/gradle
| Author | SHA1 | Date | |
|---|---|---|---|
| 8f3b0218e7 | |||
| 4903c87e90 | |||
| c3281c6135 | |||
| edee72866b | |||
| 364c097ba1 | |||
| 8fb51d6c5d | |||
| 4791e0d754 | |||
| c50f8bc669 | |||
| 263733110a | |||
| 6cbb5f869d | |||
| ab0fdf03a8 |
@@ -1,5 +0,0 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "intellij-idea-community.spec"
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
diff --git a/platform/build-scripts/src/org/jetbrains/intellij/build/LinuxDistributionCustomizer.kt b/platform/build-scripts/src/org/jetbrains/intellij/build/LinuxDistributionCustomizer.kt
|
||||
--- a/platform/build-scripts/src/org/jetbrains/intellij/build/LinuxDistributionCustomizer.kt (revision 7e0cfee10427cc87a372ef23d6bf083cc35fdb5e)
|
||||
+++ b/platform/build-scripts/src/org/jetbrains/intellij/build/LinuxDistributionCustomizer.kt (date 1670176639293)
|
||||
@@ -24,7 +24,7 @@
|
||||
/**
|
||||
* If {@code true} a separate *-no-jbr.tar.gz artifact without runtime will be produced.
|
||||
*/
|
||||
- var buildTarGzWithoutBundledRuntime = false
|
||||
+ var buildTarGzWithoutBundledRuntime = true
|
||||
|
||||
/**
|
||||
* If {@code true}, the only *-no-jbr.tar.gz will be produced, no other binaries for Linux will be built.
|
||||
@@ -1,90 +0,0 @@
|
||||
Name: intellij-idea-community
|
||||
Version: 231.9161.38
|
||||
Release: 1%?dist
|
||||
Summary: IDE for Java/Groovy/etc. with advanced refactoring features
|
||||
License: Apache-2.0
|
||||
URL: https://jetbrains.com/idea
|
||||
Source0: https://github.com/JetBrains/intellij-community/archive/refs/tags/idea/%version.tar.gz
|
||||
Source1: https://github.com/JetBrains/android/archive/refs/tags/idea/%version.tar.gz
|
||||
Source2: https://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar
|
||||
Patch0: enable-no-jdr.patch
|
||||
Requires: giflib java-latest-openjdk python3 bash libdbusmenu fontconfig hicolor-icon-theme
|
||||
BuildRequires: ant git java-latest-openjdk-devel maven
|
||||
|
||||
%description
|
||||
Intellij IDEA is an IDE for Java, Groovy and other programming languages with
|
||||
advanced refactoring features.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
tar xf %SOURCE1
|
||||
|
||||
cat<<EOF > idea.desktop
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=IntelliJ IDEA Community Edition
|
||||
Comment=Develop with pleasure!
|
||||
Exec=/usr/bin/idea %f
|
||||
Icon=idea
|
||||
Terminal=false
|
||||
StartupNotify=true
|
||||
StartupWMClass=jetbrains-idea-ce
|
||||
Categories=Development;IDE;Java;
|
||||
EOF
|
||||
|
||||
|
||||
cat<<EOF > idea.sh
|
||||
#!/bin/sh
|
||||
if [ -z "$IDEA_JDK" ] ; then
|
||||
IDEA_JDK="/usr/lib/jvm/java-17-openjdk/"
|
||||
fi
|
||||
# open-jfx location that should match the JDK version
|
||||
if [ -z "$IDEA_JFX" ] ; then
|
||||
IDEA_JFX="/usr/lib/jvm/java-17-openjfx/"
|
||||
fi
|
||||
# classpath according to defined JDK/JFX
|
||||
if [ -z "$IDEA_CLASSPATH" ] ; then
|
||||
IDEA_CLASSPATH="${IDEA_JDK}/lib/*:${IDEA_JFX}/lib/*"
|
||||
fi
|
||||
|
||||
exec env IDEA_JDK="$IDEA_JDK" IDEA_CLASSPATH="$IDEA_CLASSPATH" %_datadir/idea/bin/idea.sh "$@"
|
||||
EOF
|
||||
|
||||
|
||||
%build
|
||||
export MAVEN_REPOSITORY=%HOME/.m2/repository
|
||||
mvn install:install-file -Dfile=%SOURCE2 -DgroupId=junit -DartifactId=junit -Dversion=3.8.1 -Dpackaging=jar -DgeneratePom=true
|
||||
|
||||
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk
|
||||
export PATH="/usr/lib/jvm/java-17-openjdk/bin:$PATH"
|
||||
|
||||
./installers.cmd -Dintellij.build.use.compiled.classes=false -Dintellij.build.target.os=linux
|
||||
|
||||
tar xf out/idea-ce/artifacts/ideaIC-%version-no-jbr.tar.gz -C .
|
||||
|
||||
|
||||
%install
|
||||
cd idea-IC-%version
|
||||
install -dm755 %buildroot%_datadir/{pixmaps,idea,icons/hicolor/scalable/apps}
|
||||
cp -dr --no-preserve='ownership' bin lib plugins %buildroot%_datadir/idea/
|
||||
ln -s %_datadir/idea/bin/idea.png %buildroot%_datadir/pixmaps/
|
||||
ln -s %_datadir/idea/bin/idea.svg %buildroot%_datadir/icons/hicolor/scalable/apps/
|
||||
install -Dm644 ../idea.desktop -t %buildroot%_datadir/applications/
|
||||
install -Dm755 ../idea.sh %buildroot/%_bindir/idea
|
||||
chmod +x %buildroot/%_bindir/idea
|
||||
echo %version > build.txt
|
||||
install -Dm644 build.txt -t %buildroot%_datadir/idea
|
||||
|
||||
|
||||
%files
|
||||
%doc README.md docs/
|
||||
%license idea-IC-%version/license
|
||||
%_datadir/pixmaps/idea.png
|
||||
%_datadir/icons/hicolor/scalable/apps/idea.svg
|
||||
%_datadir/applications/idea.desktop
|
||||
%_bindir/idea
|
||||
%_datadir/idea/
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
@@ -1,6 +0,0 @@
|
||||
let ver = gh_tag("JetBrains/intellij-community");
|
||||
let ver2 = gh_tag("JetBrains/android");
|
||||
if ver.starts_with("idea/") && ver == ver2 {
|
||||
ver.remove("idea/");
|
||||
rpm.version(ver);
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "intellij-idea-ultimate.spec"
|
||||
}
|
||||
}
|
||||
@@ -1,89 +0,0 @@
|
||||
%global buildver 231.9161.38
|
||||
%global jbr_ver 17.0.6
|
||||
%global jbr_build aarch64-b469
|
||||
%global jbr_minor 82
|
||||
|
||||
Name: intellij-idea-ultimate
|
||||
Version: 2023.1.3
|
||||
Release: 1%?dist
|
||||
Summary: IDE for Java/Groovy/etc. with advanced refactoring features
|
||||
License: Unlicense
|
||||
URL: https://jetbrains.com/idea
|
||||
Source0: https://download.jetbrains.com/idea/ideaIU-%version.tar.gz
|
||||
Requires: giflib libXtst libXrender
|
||||
Suggests: %name-jre
|
||||
Recommends: libdbusmenu java-latest-openjdk
|
||||
|
||||
|
||||
%ifarch aarch64
|
||||
Source1: https://cache-redirector.jetbrains.com/intellij-jbr/jbr-%jbr_ver-linux-%jbr_build.%jbr_minor.tar.gz
|
||||
Source2: https://github.com/JetBrains/intellij-community/raw/master/bin/linux/aarch64/fsnotifier
|
||||
%endif
|
||||
|
||||
|
||||
%description
|
||||
Intellij IDEA is an IDE for Java, Groovy and other programming languages with
|
||||
advanced refactoring features.
|
||||
|
||||
|
||||
%package jre
|
||||
Summary: IDE for Java/Groovy/etc. with advanced refactoring features
|
||||
|
||||
%description jre
|
||||
Intellij IDEA is an IDE for Java, Groovy and other programming languages with
|
||||
advanced refactoring features.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n idea-IU-%buildver
|
||||
|
||||
# https://youtrack.jetbrains.com/articles/IDEA-A-48/JetBrains-IDEs-on-AArch64#linux
|
||||
%ifarch aarch64
|
||||
tar xf %SOURCE1
|
||||
tar xf %SOURCE2
|
||||
cp -f fsnotifier bin/fsnotifier
|
||||
chmod +x bin/fsnotifier
|
||||
%endif
|
||||
|
||||
|
||||
cat<<EOF > jetbrains-idea.desktop
|
||||
[Desktop Entry]
|
||||
Name=IntelliJ IDEA Ultimate Edition
|
||||
Comment=Intelligent Java IDE
|
||||
Exec=intellij-idea-ultimate-edition %u
|
||||
Icon=intellij-idea-ultimate-edition
|
||||
Terminal=false
|
||||
StartupWMClass=jetbrains-idea
|
||||
Type=Application
|
||||
Categories=Development;IDE;
|
||||
EOF
|
||||
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
install -d %buildroot%_bindir %buildroot%_datadir/%name
|
||||
mv * %buildroot%_datadir/%name
|
||||
# https://youtrack.jetbrains.com/issue/IDEA-185828
|
||||
chmod +x %buildroot%_datadir/%name/plugins/maven/lib/maven3/bin/mvn
|
||||
ln -s %_datadir/%name/bin/idea.sh %buildroot%_bindir/%name
|
||||
mkdir -p %buildroot%_datadir/applications %buildroot%_datadir/pixmaps
|
||||
install -Dm644 jetbrains-idea.desktop %buildroot%_datadir/applications/jetbrains-idea.desktop
|
||||
install -Dm644 %buildroot%_datadir/%name/bin/idea.svg %buildroot%_datadir/pixmaps/%name.svg
|
||||
|
||||
# workaround FS#40934
|
||||
sed -i 's|lcd|on|' %buildroot/%name/bin/*.vmoptions
|
||||
|
||||
mv jbr %buildroot%_datadir/%name
|
||||
|
||||
%files
|
||||
%_datadir/%name
|
||||
%_bindir/%name
|
||||
%_datadir/applications/jetbrains-idea.desktop
|
||||
%_datadir/pixmaps/%name.svg
|
||||
|
||||
%files jre
|
||||
%buildroot%_datadir/%name/jbr
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
@@ -3,10 +3,8 @@ Version: 8.2.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Powerful build system for the JVM
|
||||
URL: https://gradle.org/
|
||||
Source0: https://services.gradle.org/distributions/%{name}-%{version}-src.zip
|
||||
Source1: https://services.gradle.org/distributions/%{name}-%{version}-all.zip
|
||||
License: Apache-2.0
|
||||
Requires: java-latest-openjdk coreutils findutils sed which bash
|
||||
Requires: java-latest-openjdk coreutils findutils sed which bash unzip
|
||||
BuildRequires: java-11-openjdk-devel asciidoc xmlto groovy unzip git
|
||||
BuildArch: noarch
|
||||
Recommends: gradle-doc gradle-src
|
||||
@@ -29,14 +27,10 @@ Sources for gradle, a powerful build system for the JVM.
|
||||
# See PKGBUILD on Arch Linux
|
||||
|
||||
%prep
|
||||
unzip %{SOURCE1} %{name}-%{version}/{README,LICENSE}
|
||||
mv %{name}-%{version}/README .
|
||||
mv %{name}-%{version}/LICENSE .
|
||||
rmdir %{name}-%{version}
|
||||
unzip %{SOURCE0}
|
||||
cd %{name}-%{version}
|
||||
git clone https://github.com/gradle/gradle/ .
|
||||
git checkout v%version
|
||||
|
||||
cat <<EOF > dist/gradle.sh
|
||||
cat <<EOF > gradle.sh
|
||||
#!/bin/sh
|
||||
export GRADLE_HOME=/usr/share/java/gradle
|
||||
EOF
|
||||
@@ -46,15 +40,15 @@ sed -i '/JvmVendorSpec.ADOPTIUM/d' \
|
||||
build-logic/jvm/src/main/kotlin/gradlebuild.unittest-and-compile.gradle.kts \
|
||||
subprojects/docs/src/snippets/java/toolchain-filters/groovy/build.gradle \
|
||||
subprojects/docs/src/snippets/java/toolchain-filters/kotlin/build.gradle.kts \
|
||||
build-logic-commons/gradle-plugin/src/main/kotlin/common.kt
|
||||
build-logic-commons/commons/build.gradle.kts
|
||||
# inhibit automatic download of binary gradle
|
||||
sed -i "s#distributionUrl=.*#distributionUrl=file\:%{SOURCE1}#" \
|
||||
gradle/wrapper/gradle-wrapper.properties
|
||||
#sed -i "s#distributionUrl=.*#distributionUrl=file\:%%{SOURCE0}#" \
|
||||
# gradle/wrapper/gradle-wrapper.properties
|
||||
|
||||
|
||||
%build
|
||||
cd %{name}-%{version}
|
||||
export PATH="/usr/lib/jvm/java-11-openjdk/bin:${PATH}"
|
||||
%dnl gradle wrapper --gradle-version %version --distribution-type all
|
||||
./gradlew installAll \
|
||||
-Porg.gradle.java.installations.auto-download=false \
|
||||
-PfinalRelease=true \
|
||||
@@ -63,10 +57,10 @@ export PATH="/usr/lib/jvm/java-11-openjdk/bin:${PATH}"
|
||||
|
||||
|
||||
%install
|
||||
cd %{name}-%{version}/dist
|
||||
cd dist
|
||||
|
||||
# install profile.d script
|
||||
install -Dm755 gradle.sh %{buildroot}/etc/profile.d/
|
||||
install -Dm755 ../gradle.sh %{buildroot}/etc/profile.d/
|
||||
|
||||
# create the necessary directory structure
|
||||
install -d "%{buildroot}/usr/share/java/%{name}/bin"
|
||||
|
||||
Reference in New Issue
Block a user