* [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/deveel-math/
@ 2016-01-15 13:20 Heather Cynede
0 siblings, 0 replies; 2+ messages in thread
From: Heather Cynede @ 2016-01-15 13:20 UTC (permalink / raw
To: gentoo-commits
commit: f1495447b6714467eb2ed9fa1cf16af20e9aaf5b
Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
AuthorDate: Tue Dec 29 16:55:09 2015 +0000
Commit: Heather Cynede <cynede <AT> gentoo <DOT> org>
CommitDate: Tue Dec 29 16:55:09 2015 +0000
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=f1495447
icon url corrected
dev-dotnet/deveel-math/deveel-math-1.5.66-r201512290.ebuild | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dev-dotnet/deveel-math/deveel-math-1.5.66-r201512290.ebuild b/dev-dotnet/deveel-math/deveel-math-1.5.66-r201512290.ebuild
index dc8fd69..a98f5c9 100644
--- a/dev-dotnet/deveel-math/deveel-math-1.5.66-r201512290.ebuild
+++ b/dev-dotnet/deveel-math/deveel-math-1.5.66-r201512290.ebuild
@@ -60,7 +60,9 @@ NUSPEC_FILE_NAME=nuget/dmath.noplatform.tmpl.nuspec
# PR Package revision, or r0 if no revision exists.
NUSPEC_VERSION=$(get_version_component_range 1-3)"${PR//r/.}"
-ICON_URL="https://raw.githubusercontent.com/ArsenShnurkov/dotnet/master/dev-dotnet/deveel-math/files/Deveel.Math.png"
+# see https://github.com/mrward/monodevelop-nuget-addin/issues/59
+#ICON_URL="file://${FILESDIR}/Deveel.Math.png"
+ICON_URL="https://raw.githubusercontent.com/ArsenShnurkov/dotnet/deveel-math/dev-dotnet/deveel-math/files/Deveel.Math.png"
# rm -rf /var/tmp/portage/dev-dotnet/deveel-math-*
# emerge =deveel-math-1.5.66-r201507280
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/deveel-math/
@ 2016-01-15 13:20 Heather Cynede
0 siblings, 0 replies; 2+ messages in thread
From: Heather Cynede @ 2016-01-15 13:20 UTC (permalink / raw
To: gentoo-commits
commit: 4b6397d4d9c1389030e484b2a75a5fa00dbd4b45
Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
AuthorDate: Tue Dec 29 12:11:06 2015 +0000
Commit: Heather Cynede <cynede <AT> gentoo <DOT> org>
CommitDate: Tue Dec 29 12:11:06 2015 +0000
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=4b6397d4
icon url set
.../deveel-math-1.5.66-r20150728.ebuild | 121 +++++++++++++++++++++
1 file changed, 121 insertions(+)
diff --git a/dev-dotnet/deveel-math/deveel-math-1.5.66-r20150728.ebuild b/dev-dotnet/deveel-math/deveel-math-1.5.66-r20150728.ebuild
new file mode 100644
index 0000000..f7fdd10
--- /dev/null
+++ b/dev-dotnet/deveel-math/deveel-math-1.5.66-r20150728.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit versionator dotnet nupkg
+
+HOMEPAGE="https://github.com/deveel/deveel-math/"
+DESCRIPTION="A library for handling big numbers and decimals under Mono/.NET frameworks"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="net45 +gac +nupkg +pkg-config debug developer"
+USE_DOTNET="net45"
+
+COMMON_DEPEND=">=dev-lang/mono-4.0.2.5
+"
+
+RDEPEND="${COMMON_DEPEND}
+"
+
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+"
+
+NAME="deveel-math"
+REPOSITORY_NAME="ArsenShnurkov/${NAME}"
+REPOSITORY_URL="https://github.com/${REPOSITORY_NAME}"
+
+# PV Package version (excluding revision, if any), for example 6.3
+# PF Full package name, ${PN}-${PVR}, for example vim-6.3-r1
+SRC_URI="${REPOSITORY_URL}/archive/dmath-${PV}.tar.gz -> ${PF}.tar.gz
+ mirror://gentoo/mono.snk.bz2"
+S="${WORKDIR}/dmath-${PV}"
+
+METAFILETOBUILD=src/Deveel.Math.sln
+
+NUSPEC_FILE_NAME=nuget/dmath.tmpl.nuspec
+
+# PVR Package version and revision (if any), for example 6.3, 6.3-r1
+# for 4-parts version this will not work properly:
+#NUSPEC_VERSION="${PVR//-r/.}"
+# that is why we use "inherit versionator"
+#if revision matches the tag exactly, we can omit revision:
+NUSPEC_VERSION=$(get_version_component_range 1-3)
+# The same version of package can be build from later commits, then we append revision:
+# PR Package revision, or r0 if no revision exists.
+#NUSPEC_VERSION=$(get_version_component_range 1-3)"${PR//r/.}"
+
+ICON_URL="https://raw.githubusercontent.com/${REPOSITORY_NAME}/master/nuget/deveel-math.svg"
+
+# rm -rf /var/tmp/portage/dev-dotnet/deveel-math-*
+# emerge =deveel-math-1.5.66-r201507280
+# leafpad /var/tmp/portage/dev-dotnet/deveel-math-1.5.66-r201507280/temp/build.log &
+
+src_unpack()
+{
+ default
+ rm nuget/NuGet.exe || die
+}
+
+src_prepare() {
+ einfo "patching project files"
+ epatch "${FILESDIR}/Deveel.Math.sln.patch"
+
+ einfo "restoring packages (NUnit)"
+ enuget_restore "${METAFILETOBUILD}"
+}
+
+src_configure() {
+ :;
+}
+
+PLATFORM="mono4"
+
+src_compile() {
+ exbuild /p:SignAssembly=true "/p:AssemblyOriginatorKeyFile=${WORKDIR}/mono.snk" "${METAFILETOBUILD}"
+
+ # run nuget_pack
+ einfo "setting .nupkg version to ${NUSPEC_VERSION}"
+ enuspec -Prop "platform=${PLATFORM};version=${NUSPEC_VERSION};package_iconUrl=${ICON_URL}" "${S}/${NUSPEC_FILE_NAME}"
+}
+
+src_install() {
+ enupkg "${WORKDIR}/dmath-${PLATFORM}.${NUSPEC_VERSION}.nupkg"
+
+ egacinstall "src/Deveel.Math/bin/${DIR}/Deveel.Math.dll"
+
+ install_pc_file
+}
+
+PC_FILE_NAME=${PN}
+
+install_pc_file()
+{
+ if use pkg-config; then
+ dodir /usr/$(get_libdir)/pkgconfig
+ ebegin "Installing ${PC_FILE_NAME}.pc file"
+ sed \
+ -e "s:@LIBDIR@:$(get_libdir):" \
+ -e "s:@PACKAGENAME@:${PC_FILE_NAME}:" \
+ -e "s:@DESCRIPTION@:${DESCRIPTION}:" \
+ -e "s:@VERSION@:${PV}:" \
+ -e 's*@LIBS@*-r:${libdir}'"/mono/${PC_FILE_NAME}/DeveelMath.dll"'*' \
+ <<\EOF >"${D}/usr/$(get_libdir)/pkgconfig/${PC_FILE_NAME}.pc" || die
+prefix=${pcfiledir}/../..
+exec_prefix=${prefix}
+libdir=${exec_prefix}/@LIBDIR@
+
+Name: @PACKAGENAME@
+Description: @DESCRIPTION@
+Version: @VERSION@
+Libs: @LIBS@
+EOF
+
+ einfo PKG_CONFIG_PATH="${D}/usr/$(get_libdir)/pkgconfig/" pkg-config --exists "${PC_FILE_NAME}"
+ PKG_CONFIG_PATH="${D}/usr/$(get_libdir)/pkgconfig/" pkg-config --exists "${PC_FILE_NAME}" || die ".pc file failed to validate."
+ eend $?
+ fi
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-15 13:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-15 13:20 [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/deveel-math/ Heather Cynede
-- strict thread matches above, loose matches on Subject: below --
2016-01-15 13:20 Heather Cynede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox