public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/pymol/, sci-chemistry/pymol/files/
Date: Mon, 20 Feb 2012 14:30:31 +0000 (UTC)	[thread overview]
Message-ID: <1329657514.729c8534f774efc7b0124e16ab8766096093498c.jlec@gentoo> (raw)

commit:     729c8534f774efc7b0124e16ab8766096093498c
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 19 13:18:34 2012 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sun Feb 19 13:18:34 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=729c8534

Fix for current HEAD, correct desktop entry generation

(Portage version: 2.2.0_alpha87/git/Linux x86_64, unsigned Manifest commit)

---
 sci-chemistry/pymol/ChangeLog                     |   24 +++++++
 sci-chemistry/pymol/files/pymol-9999-prefix.patch |   70 ++++++++++++--------
 sci-chemistry/pymol/files/pymol-9999-web.patch    |   19 +++---
 sci-chemistry/pymol/pymol-9999.ebuild             |   25 +++++--
 4 files changed, 92 insertions(+), 46 deletions(-)

diff --git a/sci-chemistry/pymol/ChangeLog b/sci-chemistry/pymol/ChangeLog
index 8b2e581..0f6860d 100644
--- a/sci-chemistry/pymol/ChangeLog
+++ b/sci-chemistry/pymol/ChangeLog
@@ -2,6 +2,30 @@
 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  19 Feb 2012; Justin Lecher <jlec@gentoo.org> pymol-9999.ebuild,
+  files/pymol-9999-prefix.patch, files/pymol-9999-web.patch:
+  Fix for current HEAD, correct desktop entry generation
+
+  19 Feb 2012; Justin Lecher <jlec@gentoo.org> pymol-9999.ebuild,
+  files/pymol-9999-prefix.patch, files/pymol-9999-web.patch:
+  Fix for current HEAD, correct desktop entry generation
+
+  19 Feb 2012; Justin Lecher <jlec@gentoo.org> pymol-9999.ebuild,
+  files/pymol-9999-prefix.patch, files/pymol-9999-web.patch:
+  Version Bump, correct desktop entry generation
+
+  19 Feb 2012; Justin Lecher <jlec@gentoo.org> pymol-9999.ebuild,
+  files/pymol-9999-prefix.patch, files/pymol-9999-web.patch:
+  Add icon to desktop file
+
+  19 Feb 2012; Justin Lecher <jlec@gentoo.org> pymol-9999.ebuild,
+  files/pymol-9999-prefix.patch, files/pymol-9999-web.patch:
+  Add desktop entry
+
+  19 Feb 2012; Justin Lecher <jlec@gentoo.org> files/pymol-9999-prefix.patch,
+  files/pymol-9999-web.patch:
+  Fix for latest head
+
   13 Feb 2012; Justin Lecher <jlec@gentoo.org> -files/1.3.0-vmd.patch,
   -files/pymol-0.99_rc10-data-path.patch, -files/pymol-1.2.2-shaders.patch,
   pymol-9999.ebuild, +files/pymol-9999-flags.patch, -files/9999-vmd.patch,

diff --git a/sci-chemistry/pymol/files/pymol-9999-prefix.patch b/sci-chemistry/pymol/files/pymol-9999-prefix.patch
index 830eb8f..9b0bad3 100644
--- a/sci-chemistry/pymol/files/pymol-9999-prefix.patch
+++ b/sci-chemistry/pymol/files/pymol-9999-prefix.patch
@@ -1,43 +1,57 @@
- setup.py |    8 ++++----
- 1 files changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/setup.py b/setup.py
-index ce0d271..2b6fa35 100755
---- a/setup.py
-+++ b/setup.py
-@@ -104,7 +104,7 @@ elif sys.platform=='darwin':
-         inc_dirs=["ov/src",
-                   "layer0","layer1","layer2",
-                   "layer3","layer4","layer5", 
--                  "/usr/X11R6/include",
-+                  "@GENTOO_PORTAGE_EPREFIX@/usr/include",
-                   EXT+"/include",
-                   EXT+"/include/GL",
-                   EXT+"/include/freetype2",
-@@ -120,7 +120,7 @@ elif sys.platform=='darwin':
-                     ]
+Index: setup.py
+===================================================================
+--- setup.py	(revision 3983)
++++ setup.py	(working copy)
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!@GENTOO_PORTAGE_EPREFIX@/usr/bin/env python
+ #
+ # This script only applies if you are performing a Python Distutils-based
+ # installation of PyMOL.
+@@ -35,7 +35,7 @@
+ 	      "modules/cealign/src/tnt" ]
+     libs=["glut32","opengl32","glu32","png"]
+     pyogl_libs = ["glut32","opengl32","glu32"]
+-    lib_dirs=["/usr/lib/w32api"]
++    lib_dirs=["@GENTOO_PORTAGE_EPREFIX@/usr/lib/w32api"]
+     def_macros=[("_PYMOL_MODULE",None),
+                 ("CYGWIN",None),
+                 ("_PYMOL_LIBPNG",None)]
+@@ -87,7 +87,7 @@
+                   "/sw/include/freetype2/freetype",
+                   "/sw/include/freetype2",
+                   "/sw/include",
+-                  "/usr/X11/include",
++                  "@GENTOO_PORTAGE_EPREFIX@/usr/X11/include",
+ 		  "modules/cealign/src",
+ 		  "modules/cealign/src/tnt",
+ 		  #"contrib/uiuc/plugins/include/",
+@@ -114,8 +114,8 @@
          ext_comp_args=[]
          ext_link_args=[
--            "-L/usr/X11R6/lib64", "-lGL", "-lXxf86vm",
-+            "-L@GENTOO_PORTAGE_EPREFIX@/usr/lib64", "-lGL", "-lXxf86vm",
-             "-L"+EXT+"/lib", "-lpng", "-lglut", "-lfreetype"
-             ]
- #============================================================================
-@@ -159,7 +159,7 @@ else: # linux or other unix
+                        "-L/sw/lib", "-lpng",
+-                       "/usr/X11/lib/libGL.dylib",
+-                       "/usr/X11/lib/libGLU.dylib",
++                       "@GENTOO_PORTAGE_EPREFIX@/usr/X11/lib/libGL.dylib",
++                       "@GENTOO_PORTAGE_EPREFIX@/usr/X11/lib/libGLU.dylib",
+                        "-lfreeglut",
+                        "-lglew",
+                        "-L/sw/lib/freetype219/lib", "-lfreetype"
+@@ -221,7 +221,7 @@
                   "layer3",
                   "layer4",
                   "layer5",
 -                 "/usr/include/freetype2",
 +                 "@GENTOO_PORTAGE_EPREFIX@/usr/include/freetype2",
                # VMD plugin support
-                             "contrib/uiuc/plugins/include",
-                             "contrib/uiuc/plugins/molfile_plugin/src",
-@@ -180,7 +180,7 @@ else: # linux or other unix
+               #              "contrib/uiuc/plugins/include",
+               #              "contrib/uiuc/plugins/molfile_plugin/src",
+@@ -242,7 +242,7 @@
                     "GLU",
                     "glut",
                     "GLEW"]
 -    lib_dirs = [ "/usr/X11R6/lib64", ]
-+    lib_dirs = [ "@GENTOO_PORTAGE_EPREFIX@/usr/lib64", ]
++    lib_dirs = [ "@GENTOO_PORTAGE_EPREFIX@/usr/X11R6/lib64", ]
      def_macros = [ ("_PYMOL_MODULE",None),
                     ("_PYMOL_INLINE",None),
                     ("_PYMOL_FREETYPE",None),

diff --git a/sci-chemistry/pymol/files/pymol-9999-web.patch b/sci-chemistry/pymol/files/pymol-9999-web.patch
index fe61f02..4f48140 100644
--- a/sci-chemistry/pymol/files/pymol-9999-web.patch
+++ b/sci-chemistry/pymol/files/pymol-9999-web.patch
@@ -1,19 +1,16 @@
- setup.py |    5 +----
- 1 files changed, 1 insertions(+), 4 deletions(-)
-
-diff --git a/setup.py b/setup.py
-index 18866a2..366d552 100755
---- a/setup.py
-+++ b/setup.py
-@@ -229,10 +229,7 @@ distribution = setup ( # Distribution meta-data
-                  'pymol/opengl/gl',
+Index: setup.py
+===================================================================
+--- setup.py	(revision 3983)
++++ setup.py	(working copy)
+@@ -292,10 +292,7 @@
                   'pymol/opengl/glu',
                   'pymol/opengl/glut',
--                 'pymol/wizard',
+                  'pymol/wizard',
+-                 'pymol2',
 -                 'web',
 -                 'web/examples',
 -                 'web/javascript', ],
-+                 'pymol/wizard', ],
++                 'pymol2', ],
      ext_modules = [
          Extension("pymol._cmd", [
                  "modules/cealign/src/ccealignmodule.cpp",

diff --git a/sci-chemistry/pymol/pymol-9999.ebuild b/sci-chemistry/pymol/pymol-9999.ebuild
index 908c7fc..1671842 100644
--- a/sci-chemistry/pymol/pymol-9999.ebuild
+++ b/sci-chemistry/pymol/pymol-9999.ebuild
@@ -10,11 +10,11 @@ RESTRICT_PYTHON_ABIS="2.4 2.5 2.6 3.*"
 PYTHON_USE_WITH="tk"
 PYTHON_MODNAME="${PN} chempy pmg_tk pmg_wx"
 
-inherit distutils eutils prefix subversion versionator
+inherit distutils eutils fdo-mime prefix subversion versionator
 
 DESCRIPTION="A Python-extensible molecular graphics system."
 HOMEPAGE="http://pymol.sourceforge.net/"
-SRC_URI=""
+SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${PN}.xpm.tar"
 ESVN_REPO_URI="https://pymol.svn.sourceforge.net/svnroot/pymol/trunk/pymol"
 
 LICENSE="PSF-2.2"
@@ -40,6 +40,11 @@ DEPEND="
 	web? ( !dev-python/webpy )"
 RDEPEND="${DEPEND}"
 
+src_unpack() {
+	unpack ${A}
+	subversion_src_unpack
+}
+
 src_prepare() {
 	epatch \
 		"${FILESDIR}"/${P}-setup.py.patch \
@@ -51,10 +56,6 @@ src_prepare() {
 	epatch "${FILESDIR}"/${P}-prefix.patch && \
 		eprefixify setup.py
 
-	# Turn off splash screen.  Please do make a project contribution
-	# if you are able though. #299020
-	epatch "${FILESDIR}"/${P}-nosplash.patch
-
 	use vmd && epatch "${FILESDIR}"/${P}-vmd.patch
 
 	if use numpy; then
@@ -91,7 +92,7 @@ src_install() {
 
 	cat >> "${T}"/pymol <<- EOF
 	#!/bin/sh
-	$(PYTHON -f) -O \${PYMOL_PATH}/__init__.py \$*
+	$(PYTHON -f) -O \${PYMOL_PATH}/__init__.py -q \$*
 	EOF
 
 	dobin "${T}"/pymol
@@ -103,6 +104,9 @@ src_install() {
 	doins -r examples
 
 	dodoc DEVELOPERS README
+
+	doicon "${WORKDIR}"/${PN}.xpm
+	make_desktop_entry pymol PyMol ${PN} "Graphics;Science;Chemistry"
 }
 
 pkg_postinst() {
@@ -110,4 +114,11 @@ pkg_postinst() {
 	elog "please use pymol config settings"
 	elog "\t set use_shaders, 1"
 	distutils_pkg_postinst
+	fdo-mime_desktop_database_update
+	fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+	fdo-mime_desktop_database_update
+	fdo-mime_mime_database_update
 }



             reply	other threads:[~2012-02-20 14:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-20 14:30 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-10-30 13:48 [gentoo-commits] proj/sci:master commit in: sci-chemistry/pymol/, sci-chemistry/pymol/files/ Justin Lecher
2014-10-20 18:01 Justin Lecher
2013-02-19 19:35 Justin Lecher
2013-02-15 15:52 Justin Lecher
2012-05-02 19:22 Justin Lecher
2012-03-29  9:07 Justin Lecher
2012-02-19 12:44 Justin Lecher
2011-12-06 16:35 Justin Lecher
2011-08-31 10:05 Justin Lecher
2011-08-26 16:01 Justin Lecher
2011-08-15 15:55 Justin Lecher
2011-06-12 10:53 Justin Lecher
2011-04-28  7:58 Justin Lecher
2011-04-04 11:18 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1329657514.729c8534f774efc7b0124e16ab8766096093498c.jlec@gentoo \
    --to=jlec@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox