[137373] branches/gsoc15-dependency/base/src/macports1.0

ijackson at macports.org ijackson at macports.org
Wed Jun 10 08:28:23 PDT 2015


Revision: 137373
          https://trac.macports.org/changeset/137373
Author:   ijackson at macports.org
Date:     2015-06-10 08:28:22 -0700 (Wed, 10 Jun 2015)
Log Message:
-----------
Move load solv.dylib to libsolv.tcl
Update Makefile.in to install macports_libsolv.tcl
libsolv.tcl and solv.dylib

Modified Paths:
--------------
    branches/gsoc15-dependency/base/src/macports1.0/Makefile.in
    branches/gsoc15-dependency/base/src/macports1.0/macports_libsolv.tcl

Added Paths:
-----------
    branches/gsoc15-dependency/base/src/macports1.0/libsolv.tcl

Modified: branches/gsoc15-dependency/base/src/macports1.0/Makefile.in
===================================================================
--- branches/gsoc15-dependency/base/src/macports1.0/Makefile.in	2015-06-10 15:20:38 UTC (rev 137372)
+++ branches/gsoc15-dependency/base/src/macports1.0/Makefile.in	2015-06-10 15:28:22 UTC (rev 137373)
@@ -4,7 +4,8 @@
 include ../../Mk/macports.autoconf.mk
 
 SRCS=		macports.tcl macports_dlist.tcl macports_util.tcl \
-		macports_autoconf.tcl diagnose.tcl reclaim.tcl
+		macports_autoconf.tcl diagnose.tcl reclaim.tcl macports_libsolv.tcl \
+        libsolv.tcl solv.dylib
 OBJS=		macports.o get_systemconfiguration_proxies.o sysctl.o
 SHLIB_NAME=	MacPorts${SHLIB_SUFFIX}
 

Added: branches/gsoc15-dependency/base/src/macports1.0/libsolv.tcl
===================================================================
--- branches/gsoc15-dependency/base/src/macports1.0/libsolv.tcl	                        (rev 0)
+++ branches/gsoc15-dependency/base/src/macports1.0/libsolv.tcl	2015-06-10 15:28:22 UTC (rev 137373)
@@ -0,0 +1,34 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
+# libsolv.tcl
+# $Id$
+#
+# Copyright (c) 2015 Jackson Isaac <ijackson at macports.org>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the distribution.
+# 3. Neither the name of The MacPorts Project nor the names of its contributors
+#    may be used to endorse or promote products derived from this software
+#    without specific prior written permission.
+# 
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+#
+
+# Load solv.dylib, bindings for libsolv
+load solv.dylib


Property changes on: branches/gsoc15-dependency/base/src/macports1.0/libsolv.tcl
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Modified: branches/gsoc15-dependency/base/src/macports1.0/macports_libsolv.tcl
===================================================================
--- branches/gsoc15-dependency/base/src/macports1.0/macports_libsolv.tcl	2015-06-10 15:20:38 UTC (rev 137372)
+++ branches/gsoc15-dependency/base/src/macports1.0/macports_libsolv.tcl	2015-06-10 15:28:22 UTC (rev 137373)
@@ -31,13 +31,20 @@
 #
 
 package provide macports_libsolv 1.0
-
+package require macports 1.0
 # Load solv.dylib, bindings for libsolv
-load solv.dylib
+package require solv
 
 ## Testing solv.dylib
-puts $solv::Job_SOLVER_SOLVABLE
+#global solv::Job_SOLVER_SOLVABLE
 
+proc print {} {
+    puts $solv::Job_SOLVER_SOLVABLE
+}
+
+#set pool [solv::Pool]
+#puts $pool
+
 namespace eval macports::libsolv {
     proc create_pool {} {
         global macports::sources
@@ -55,6 +62,6 @@
     }
 
     proc search {pattern} {
-        
+        # Search using libsolv
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150610/8c45e837/attachment-0001.html>


More information about the macports-changes mailing list